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:
parent
fdb35ebffe
commit
b94fc1485b
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue