* [Buildroot] [git commit] package/coremark-pro: fix build without threads
@ 2021-01-18 21:11 Thomas Petazzoni
0 siblings, 0 replies; only message in thread
From: Thomas Petazzoni @ 2021-01-18 21:11 UTC (permalink / raw)
To: buildroot
commit: https://git.buildroot.net/buildroot/commit/?id=8e1e15eec4223b8205c28e52e7f4f386481e6aa8
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
---
| 23 +++++++++++++++++++++--
1 file changed, 21 insertions(+), 2 deletions(-)
--git a/package/coremark-pro/coremark-pro.mk b/package/coremark-pro/coremark-pro.mk
index fdcfda33e8..f69279d5cd 100644
--- a/package/coremark-pro/coremark-pro.mk
+++ b/package/coremark-pro/coremark-pro.mk
@@ -10,13 +10,32 @@ COREMARK_PRO_LICENSE = Apache-2.0
COREMARK_PRO_LICENSE_FILES = LICENSE.md
COREMARK_PRO_DEPENDENCIES = perl
+COREMARK_PRO_LDFLAGS = -lm
+
ifeq ($(BR2_ENDIAN),"BIG")
-COREMARK_PRO_MAKE_OPTS += PLATFORM_DEFINES='EE_BIG_ENDIAN=1 EE_LITTLE_ENDIAN=0'
+COREMARK_PRO_DEFINES += \
+ EE_BIG_ENDIAN=1 \
+ EE_LITTLE_ENDIAN=0
+else
+COREMARK_PRO_DEFINES += \
+ EE_BIG_ENDIAN=0 \
+ EE_LITTLE_ENDIAN=1
+endif
+
+ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
+COREMARK_PRO_DEFINES += \
+ USE_NATIVE_PTHREAD=1 \
+ USE_SINGLE_CONTEXT=0
+COREMARK_PRO_LDFLAGS += -lpthread
else
-COREMARK_PRO_MAKE_OPTS += PLATFORM_DEFINES='EE_BIG_ENDIAN=0 EE_LITTLE_ENDIAN=1'
+COREMARK_PRO_DEFINES += \
+ USE_NATIVE_PTHREAD=0 \
+ USE_SINGLE_CONTEXT=1
endif
COREMARK_PRO_MAKE_OPTS += \
+ LINKER_LAST="$(COREMARK_PRO_LDFLAGS)" \
+ PLATFORM_DEFINES="$(COREMARK_PRO_DEFINES)" \
TARGET=linux$(if $(BR2_ARCH_IS_64),64) \
EXE=
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-01-18 21:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-18 21:11 [Buildroot] [git commit] package/coremark-pro: fix build without threads Thomas Petazzoni
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.