summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2021-02-22 21:43:24 -0800
committerHans Kristian Rosbach <hk-github@circlestorm.org>2021-02-26 09:30:01 +0100
commit51566828e52803a1355837660ac2afd585ac05e4 (patch)
treef48b2700c4f0506e153fbd86dd0aff0822449de6
parent7337eeab9874bb0eb65d35231486b55ad8bafb1e (diff)
Only set CPU feature flags in configure script if not using native instructions.
-rwxr-xr-xconfigure9
1 files changed, 9 insertions, 0 deletions
diff --git a/configure b/configure
index 171a768..6cc3d5e 100755
--- a/configure
+++ b/configure
@@ -232,6 +232,15 @@ case `$cc -v 2>&1` in
*clang*) gcc=1 ;;
esac
+if test $native -eq 1; then
+ avx2flag=""
+ sse2flag=""
+ ssse3flag=""
+ sse4flag=""
+ sse42flag=""
+ pclmulflag=""
+fi
+
if test $build32 -eq 1; then
CFLAGS="${CFLAGS} -m32"
SFLAGS="${SFLAGS} -m32"