From 4e94bc9efc6b3ae97b67140d2042c2974cdc56f4 Mon Sep 17 00:00:00 2001 From: hagen Date: Fri, 12 Dec 2014 07:48:13 +0000 Subject: [PATCH] * (1/3) cleanup : use $CXXFLAGS instead $CPU_FLAGS --- Makefile | 6 +++--- Makefile.linux | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index bb17530f..d250f091 100644 --- a/Makefile +++ b/Makefile @@ -24,16 +24,16 @@ obj: # weaker rule for building files without headers obj/%.o : %.cpp - $(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) $(CPU_FLAGS) -c -o $@ $< + $(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -c -o $@ $< obj/%.o : %.cpp %.h - $(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) $(CPU_FLAGS) -c -o $@ $< + $(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -c -o $@ $< $(I2PD): $(patsubst %.cpp,obj/%.o,$(DAEMON_SRC)) $(CXX) -o $@ $^ $(LDLIBS) $(LDFLAGS) $(LIBS) $(SHLIB): $(patsubst %.cpp,obj/%.o,$(LIB_SRC)) - $(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) $(CPU_FLAGS) -shared -o $@ $^ + $(CXX) $(CXXFLAGS) $(NEEDED_CXXFLAGS) $(INCFLAGS) -shared -o $@ $^ clean: rm -fr obj $(I2PD) $(SHLIB) diff --git a/Makefile.linux b/Makefile.linux index 6e1987fa..5fbaa815 100644 --- a/Makefile.linux +++ b/Makefile.linux @@ -34,7 +34,7 @@ ifeq ($(USE_AESNI),yes) ifeq ($(IS_64),1) #check if AES-NI is supported by CPU ifneq ($(shell grep -c aes /proc/cpuinfo),0) - CPU_FLAGS = -maes -DAESNI + CXXFLAGS += -maes -DAESNI endif endif endif