configure.ac: when --enable-asm (default on), for gcc amd64 target always include -msse4 even if not --enable-intelasm (it's needed for TFM_X86_64 inline asm).

This commit is contained in:
Daniel Pouzzner 2020-08-18 17:46:46 -05:00
parent c0d831ea3a
commit dff5344d82

View File

@ -1115,6 +1115,18 @@ then
fi
fi
AS_IF([test "x$ENABLED_AESGCM" != "xno"],[AM_CCASFLAGS="$AM_CCASFLAGS -DHAVE_AESGCM"])
elif test "$host_cpu" = "x86_64"
then
if test "$GCC" = "yes"
then
# GCC needs these flags, icc doesn't
# opt levels greater than 2 may cause problems on systems w/o aesni
if test "$CC" != "icc"
then
AM_CFLAGS="$AM_CFLAGS -msse4"
fi
fi
fi
if test "$ENABLED_INTELASM" = "yes"