Only set CPU feature flags in configure script if not using native instructions.

This commit is contained in:
Nathan Moinvaziri 2021-02-22 21:43:24 -08:00 committed by Hans Kristian Rosbach
parent 7337eeab98
commit 51566828e5

9
configure vendored
View File

@ -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"