]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Only set CPU feature flags in configure script if not using native instructions.
authorNathan Moinvaziri <nathan@nathanm.com>
Tue, 23 Feb 2021 05:43:24 +0000 (21:43 -0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Fri, 26 Feb 2021 08:30:01 +0000 (09:30 +0100)
configure

index 171a76876f68c7832d07dc2fbb555b5889942e59..6cc3d5ef2e422d12e3884ad91c997f35ca175549 100755 (executable)
--- 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"