From c9a13ae0838174d1c05f026cee3ff66482620626 Mon Sep 17 00:00:00 2001 From: Joel Stanley Date: Tue, 13 Sep 2022 16:53:03 +0930 Subject: [PATCH] package/coremark: Set cflags 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 Acked-by: Chris Packham Signed-off-by: Yann E. MORIN --- 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