forked from wolfSSL/wolfssl
Merge pull request #3514 from SparkiDev/aesni_sse4
AESNI compile flags: clang doesn't need -msse4
This commit is contained in:
15
configure.ac
15
configure.ac
@@ -1383,11 +1383,18 @@ then
|
|||||||
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_AESNI"
|
AM_CFLAGS="$AM_CFLAGS -DWOLFSSL_AESNI"
|
||||||
if test "$GCC" = "yes"
|
if test "$GCC" = "yes"
|
||||||
then
|
then
|
||||||
# GCC needs these flags, icc doesn't
|
# clang needs these flags
|
||||||
# opt levels greater than 2 may cause problems on systems w/o aesni
|
if test "$CC" = "clang"
|
||||||
if test "$CC" != "icc"
|
|
||||||
then
|
then
|
||||||
AM_CFLAGS="$AM_CFLAGS -maes -msse4 -mpclmul"
|
AM_CFLAGS="$AM_CFLAGS -maes -mpclmul"
|
||||||
|
else
|
||||||
|
# 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 -maes -msse4 -mpclmul"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
AS_IF([test "x$ENABLED_AESGCM" != "xno"],[AM_CCASFLAGS="$AM_CCASFLAGS -DHAVE_AESGCM"])
|
AS_IF([test "x$ENABLED_AESGCM" != "xno"],[AM_CCASFLAGS="$AM_CCASFLAGS -DHAVE_AESGCM"])
|
||||||
|
Reference in New Issue
Block a user