[Buildroot] [git commit branch/2023.02.x] package/coremark: Set cflags

Peter Korsgaard peter at korsgaard.com
Sun Apr 23 10:29:27 UTC 2023


commit: https://git.buildroot.net/buildroot/commit/?id=6cee24af5316dd1104cc2a8198fdbddafeaa60d1
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2023.02.x

The coremark build needs to set PORT_CFLAGS explicitly in order to pick
up the configured optmisation level, and other flags.

Signed-off-by: Joel Stanley <joel at jms.id.au>
Acked-by: Chris Packham <judge.packham at gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
(cherry picked from commit c9a13ae0838174d1c05f026cee3ff66482620626)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/coremark/coremark.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/coremark/coremark.mk b/package/coremark/coremark.mk
index 418fd5c8d3..9ea8693e71 100644
--- a/package/coremark/coremark.mk
+++ b/package/coremark/coremark.mk
@@ -11,6 +11,7 @@ COREMARK_LICENSE_FILES = LICENSE.md
 
 define COREMARK_BUILD_CMDS
 	$(TARGET_MAKE_ENV) $(MAKE) CC="$(TARGET_CC)" -C $(@D) \
+		PORT_CFLAGS="$(TARGET_CFLAGS)" \
 		PORT_DIR=linux$(if $(BR2_ARCH_IS_64),64) EXE= link
 endef
 



More information about the buildroot mailing list