From: Sitsofe Wheeler Date: Wed, 7 Mar 2018 09:54:45 +0000 (+0000) Subject: configure: make --disable-optimizations disable march=native X-Git-Tag: fio-3.6~53^2~1 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=c922e0b0cb917a7a47265e76ff13b8911e0e497a configure: make --disable-optimizations disable march=native Signed-off-by: Sitsofe Wheeler --- diff --git a/configure b/configure index 9a8a7544..aefd5bb0 100755 --- a/configure +++ b/configure @@ -1,7 +1,7 @@ #!/bin/sh # # Fio configure script. Heavily influenced by the manual qemu configure -# script. Sad this this is easier than autoconf and enemies. +# script. Sad this is easier than autoconf and enemies. # # set temporary file name @@ -2114,7 +2114,8 @@ int main(int argc, char **argv) return 0; } EOF -if test "$disable_native" = "no" && compile_prog "-march=native" "" "march=native"; then +if test "$disable_native" = "no" && test "$disable_opt" != "yes" && \ + compile_prog "-march=native" "" "march=native"; then build_native="yes" fi print_config "Build march=native" "$build_native"