summaryrefslogtreecommitdiff
path: root/databases/kyototycoon/files/patch-configure
blob: 2ac536c3a2ea9d62a56b94df60ca69b8b126d8cc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--- configure.orig	2020-03-19 09:12:04 UTC
+++ configure
@@ -3389,10 +3389,10 @@ fi
 if test "$enable_opt" != "no"
 then
   printf 'checking for CPU optimization availability... '
-  if printf 'main() {}' | $CC -xc -march=native -o config.tmp - >config.tmp 2>&1
+  if printf 'main() {}' | $CC -xc -O3 -o config.tmp - >config.tmp 2>&1
   then
-    MYCFLAGS="-march=native $MYCFLAGS"
-    MYCXXFLAGS="-march=native $MYCXXFLAGS"
+    MYCFLAGS="-O3 $MYCFLAGS"
+    MYCXXFLAGS="-O3 $MYCXXFLAGS"
     printf 'yes\n'
   else
     printf 'no\n'