From c3195da04dded97ce6447a7c9ffc66c07ecc95e9 Mon Sep 17 00:00:00 2001 From: Frank Denis Date: Sat, 10 Oct 2015 19:40:29 +0200 Subject: [PATCH] ssse3 target is required in addition to sse4.1 --- src/libsodium/Makefile.am | 2 +- .../crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/libsodium/Makefile.am b/src/libsodium/Makefile.am index 201c0bd3..be775006 100644 --- a/src/libsodium/Makefile.am +++ b/src/libsodium/Makefile.am @@ -273,7 +273,7 @@ noinst_LTLIBRARIES = libaesni.la libsse2.la libaesni_la_LDFLAGS = $(libsodium_la_LDFLAGS) libaesni_la_CPPFLAGS = $(libsodium_la_CPPFLAGS) \ - @CFLAGS_SSE4_1@ @CFLAGS_AESNI@ @CFLAGS_PCLMUL@ + @CFLAGS_SSSE3@ @CFLAGS_SSE4_1@ @CFLAGS_AESNI@ @CFLAGS_PCLMUL@ libaesni_la_SOURCES = \ crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c diff --git a/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c b/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c index 5cb17fbc..05b49459 100644 --- a/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c +++ b/src/libsodium/crypto_aead/aes256gcm/aesni/aead_aes256gcm_aesni.c @@ -13,6 +13,7 @@ #ifdef HAVE_WMMINTRIN_H +#pragma GCC target("ssse3") #pragma GCC target("sse4.1") #pragma GCC target("aes") #pragma GCC target("pclmul")