From 056958724b8c7581aff2bc022841c1ca6db1e590 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 adding --disable-native to FIO_OPTS. Signed-off-by: Jens Maus Signed-off-by: Arnout Vandecappelle --- package/fio/fio.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/fio/fio.mk b/package/fio/fio.mk index b1763d6c73..f6e7b036bb 100644 --- a/package/fio/fio.mk +++ b/package/fio/fio.mk @@ -9,7 +9,7 @@ FIO_SITE = http://brick.kernel.dk/snaps FIO_LICENSE = GPL-2.0 FIO_LICENSE_FILES = COPYING MORAL-LICENSE -FIO_OPTS = --cc="$(TARGET_CC)" --extra-cflags="$(TARGET_CFLAGS)" +FIO_OPTS = --disable-native --cc="$(TARGET_CC)" --extra-cflags="$(TARGET_CFLAGS)" ifeq ($(BR2_PACKAGE_LIBAIO),y) FIO_DEPENDENCIES += libaio