fix compilation on arm64

This commit is contained in:
R4SAS 2020-11-10 21:55:42 +00:00
parent 6f91e3988c
commit f588af834d
3 changed files with 17 additions and 21 deletions

View file

@ -58,13 +58,14 @@ endif
endif
ifeq ($(USE_AESNI),yes)
#check if AES-NI is supported by CPU
ifneq ($(shell $(GREP) -c aes /proc/cpuinfo),0)
machine := $(shell uname -m)
ifeq ($(machine), aarch64)
CXXFLAGS += -DARM64AES
else
ifneq (, $(findstring aarch64, $(SYS)))
CXXFLAGS += -DARM64AES
else
ifeq (, $(findstring arm, $(SYS))) # no arm in dumpmachine
# check if AES-NI is supported by CPU
ifeq ($(shell $(GREP) -c aes /proc/cpuinfo),0)
CPU_FLAGS += -maes
endif
endif
endif
endif