diff --git a/WDL/swell/Makefile b/WDL/swell/Makefile index cb5ed33..c5eb553 100644 --- a/WDL/swell/Makefile +++ b/WDL/swell/Makefile @@ -17,6 +17,7 @@ PKG_CONFIG = pkg-config COMPILER=GCC +USER_CFLAGS := $(CFLAGS) CFLAGS = -pipe -fvisibility=hidden -fno-math-errno -fPIC -DPIC -Wall -Wshadow -Wno-unused-function -Wno-multichar -Wtype-limits -Wno-unused-value -fstrict-aliasing CFLAGS += -DSWELL_MAKING_DYLIB @@ -75,16 +76,9 @@ ifeq ($(COMPILER),CLANG) endif ifdef DEBUG -CFLAGS += -O0 -g -D_DEBUG +CFLAGS += -D_DEBUG else -CFLAGS += -O2 -DNDEBUG - ifdef DEBUG_INFO - CFLAGS += -g - else - ifneq ($(COMPILER),CLANG) - CFLAGS += -s - endif - endif +CFLAGS += -DNDEBUG endif LINKEXTRA = -lpthread -ldl @@ -174,7 +168,8 @@ ifndef NOGDK endif endif -CXXFLAGS = $(CFLAGS) +CXXFLAGS := $(CFLAGS) $(CXXFLAGS) +CFLAGS += $(USER_CFLAGS) default: libSwell$(DLL_EXT)