From d741d59342036cedda9129cc9001ca560c58ad27 Mon Sep 17 00:00:00 2001 From: Jens Maus Date: Sun, 17 Sep 2023 22:29:17 +0200 Subject: [PATCH] package/fio: remove -march=native Per default, the fio package uses the "-march=native" GCC option. This is of course wildly inappropriate for cross-compilation and can result in illegal instructions. Thus we make sure fio will not use that compiler option by passing --disable-native to configure. Signed-off-by: Jens Maus Signed-off-by: Arnout Vandecappelle (cherry picked from commit 056958724b8c7581aff2bc022841c1ca6db1e590) Signed-off-by: Peter Korsgaard --- package/fio/fio.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/fio/fio.mk b/package/fio/fio.mk index 13818b60fd..b46ece7702 100644 --- a/package/fio/fio.mk +++ b/package/fio/fio.mk @@ -26,7 +26,8 @@ FIO_DEPENDENCIES += zlib endif define FIO_CONFIGURE_CMDS - (cd $(@D); $(TARGET_MAKE_ENV) ./configure --cc="$(TARGET_CC)" --extra-cflags="$(TARGET_CFLAGS)") + (cd $(@D); $(TARGET_MAKE_ENV) ./configure --disable-native \ + --cc="$(TARGET_CC)" --extra-cflags="$(TARGET_CFLAGS)") endef define FIO_BUILD_CMDS