From: Nathan Moinvaziri Date: Tue, 23 Feb 2021 05:43:24 +0000 (-0800) Subject: Only set CPU feature flags in configure script if not using native instructions. X-Git-Tag: 2.0.0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=51566828e52803a1355837660ac2afd585ac05e4;p=thirdparty%2Fzlib-ng.git Only set CPU feature flags in configure script if not using native instructions. --- diff --git a/configure b/configure index 171a7687..6cc3d5ef 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"