mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 19:57:48 +02:00
fix compilation on arm64
This commit is contained in:
parent
6f91e3988c
commit
f588af834d
3 changed files with 17 additions and 21 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue