for first time disable aesenc for arm64

This commit is contained in:
Arm64 plaz 2018-04-24 18:23:40 +00:00
parent d9b8731ddc
commit 66de7ad049
3 changed files with 16 additions and 1 deletions

View file

@ -60,7 +60,12 @@ endif
ifeq ($(USE_AESNI),yes)
#check if AES-NI is supported by CPU
ifneq ($(shell $(GREP) -c aes /proc/cpuinfo),0)
CPU_FLAGS += -maes -DAESNI
machine := $(shell uname -m)
ifeq ($(machine), aarch64)
CXXFLAGS += -DARM64AES
else
CPU_FLAGS += -maes -DAESNI
endif
endif
endif