mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
don't use AESNI if not supported
This commit is contained in:
@@ -34,7 +34,7 @@ IS_64 := $(shell $(CXX) -dumpmachine 2>&1 | $(GREP) -c "64")
|
|||||||
ifeq ($(USE_AESNI),yes)
|
ifeq ($(USE_AESNI),yes)
|
||||||
ifeq ($(IS_64),1)
|
ifeq ($(IS_64),1)
|
||||||
#check if AES-NI is supported by CPU
|
#check if AES-NI is supported by CPU
|
||||||
ifneq ($(shell $(GREP) -c aes /proc/cpuinfo),1)
|
ifneq ($(shell $(GREP) -c aes /proc/cpuinfo),0)
|
||||||
CXXFLAGS += -maes -DAESNI
|
CXXFLAGS += -maes -DAESNI
|
||||||
else
|
else
|
||||||
$(warning "AESNI support enabled requested but not supported by this CPU")
|
$(warning "AESNI support enabled requested but not supported by this CPU")
|
||||||
|
|||||||
Reference in New Issue
Block a user