Skip to contentSkip to conversation

package/fio: remove -march=native

Buildroot Peter Korsgaard 1 participant 1 message Sep 26, 2023

lore
Share & tools
lore
#0 lore raw

commit: https://git.buildroot.net/buildroot/commit/?id=395d92503cfc85f8b6a46ba93f34048f634ce40d
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2023.05.x

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.

(cherry picked from commit 056958724b8c7581aff2bc022841c1ca6db1e590)
---
 package/fio/fio.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/fio/fio.mk +2 -1
index 13818b60fd..b46ece7702 100644
@@ -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

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot