From d417b2806c88cf06f4f3baa0064d6b1f9f22037d Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 13 Feb 2022 18:41:18 +0100 Subject: Linux/FreeBSD: Enable building without AESNI support by setting environment variable DISABLE_AESNI to 1 during build or passing NOAESNI=1 to make command This comes following Github issue #892 and which should be solved thanks to this. --- src/Volume/Volume.make | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Volume/Volume.make') diff --git a/src/Volume/Volume.make b/src/Volume/Volume.make index 224eff66..a7f9ef0a 100644 --- a/src/Volume/Volume.make +++ b/src/Volume/Volume.make @@ -47,12 +47,16 @@ ifeq "$(PLATFORM)" "MacOSX" OBJSEX += ../Crypto/sha512_sse4.oo else ifeq "$(CPU_ARCH)" "x86" OBJS += ../Crypto/Aes_x86.o +ifeq "$(DISABLE_AESNI)" "0" OBJS += ../Crypto/Aes_hw_cpu.o +endif OBJS += ../Crypto/sha256-x86-nayuki.o OBJS += ../Crypto/sha512-x86-nayuki.o else ifeq "$(CPU_ARCH)" "x64" OBJS += ../Crypto/Aes_x64.o +ifeq "$(DISABLE_AESNI)" "0" OBJS += ../Crypto/Aes_hw_cpu.o +endif OBJS += ../Crypto/Twofish_x64.o OBJS += ../Crypto/Camellia_x64.o OBJS += ../Crypto/Camellia_aesni_x64.o -- cgit v1.2.3