package/fio: remove -march=native
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.
Signed-off-by Jens Maus <[email protected]>
Signed-off-by Arnout Vandecappelle <[email protected]>
(cherry picked from commit 056958724b8c7581aff2bc022841c1ca6db1e590)
Signed-off-by Peter Korsgaard <[email protected]>
--- package/fio/fio.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
package/fio/fio.mk +2 -1
@@ -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