fio: add --disable-native to the configure options

fio by default is passing the -march=native flag to
gcc, which causes it to emit specific optimized
instructions that are not available on all cpu models.

More specifically, the particular cause was that it
was enabling the BMI2 instruction set on the x86_64
builder and emitting shlx instructions which were
crashing fio (as illegal opcodes) on machines with
older cpus.

Signed-off-by: Anthony Iliopoulos <ailiop@altatus.com>
This commit is contained in:
Anthony Iliopoulos 2018-11-27 21:37:27 +01:00 committed by maxice8
parent fdb35ebffe
commit b94fc1485b
1 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'fio'
pkgname=fio
version=3.12
revision=1
revision=2
wrksrc="${pkgname}-${pkgname}-${version}"
build_style=configure
make_install_args="mandir=/usr/share/man"
@ -19,7 +19,7 @@ case "$XBPS_TARGET_MACHINE" in
esac
do_configure() {
./configure --prefix=/usr --extra-cflags="$CFLAGS"
./configure --prefix=/usr --extra-cflags="$CFLAGS" --disable-native
}
post_install() {