configure: make --disable-optimizations disable march=native
authorSitsofe Wheeler <sitsofe@yahoo.com>
Wed, 7 Mar 2018 09:54:45 +0000 (09:54 +0000)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Wed, 7 Mar 2018 16:35:47 +0000 (16:35 +0000)
Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
configure

index 9a8a754..aefd5bb 100755 (executable)
--- 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"