From 219abaa7e135cc3c55a881d4a40ae5b90bc5c6ad Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 15 Dec 2014 16:15:06 -0500 Subject: [PATCH] don't use AESNI if not supported --- Makefile.linux | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile.linux b/Makefile.linux index 7764e6f3..39047415 100644 --- a/Makefile.linux +++ b/Makefile.linux @@ -34,7 +34,7 @@ IS_64 := $(shell $(CXX) -dumpmachine 2>&1 | $(GREP) -c "64") ifeq ($(USE_AESNI),yes) ifeq ($(IS_64),1) #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 else $(warning "AESNI support enabled requested but not supported by this CPU")