1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-11 02:58:02 -06:00

Linux: Fix link error with gcc 4.8 by build AESNI version of SM4 from gcc 4.4

AESNI support was enabled starting from gcc 4.4 and so AESNI code of SM4 should be built starting from this version.
This commit is contained in:
Mounir IDRASSI
2025-05-10 17:47:28 +09:00
parent 745fab60e9
commit 01cfc169c6

View File

@@ -96,13 +96,16 @@ else
OBJS += ../Crypto/blake2s_SSE41.o
OBJS += ../Crypto/blake2s_SSSE3.o
endif
ifeq "$(GCC_GTEQ_500)" "1"
OBJSHANI += ../Crypto/Sha2Intel.oshani
ifeq "$(GCC_GTEQ_440)" "1"
OBJAESNI += ../Crypto/sm4-impl-aesni.oaesni
else
OBJS += ../Crypto/Sha2Intel.o
OBJS += ../Crypto/sm4-impl-aesni.o
endif
ifeq "$(GCC_GTEQ_500)" "1"
OBJSHANI += ../Crypto/Sha2Intel.oshani
else
OBJS += ../Crypto/Sha2Intel.o
endif
else
OBJS += ../Crypto/wolfCrypt.o
endif