diff options
-rw-r--r-- | make/template/main.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/make/template/main.mk b/make/template/main.mk index acdcfbe5a..ff94d4c63 100644 --- a/make/template/main.mk +++ b/make/template/main.mk @@ -14,7 +14,7 @@ CC = @CC@ SYSTEM = @SYSTEM@ BUILDPATH = @BUILD_DIR@ SOCKETENGINE = @SOCKETENGINE@ -CXXFLAGS = -O1 -pipe -fPIC -DPIC +CXXFLAGS = -pipe -fPIC -DPIC LDLIBS = -pthread -lstdc++ LDFLAGS = SHARED = -shared -rdynamic @@ -60,6 +60,12 @@ INSTMODE_LIB = 0644 @ENDIF FOOTER = finishmessage +@IFDEF QUICK + CXXFLAGS += -O0 +@ELSE + CXXFLAGS += -O2 +@ENDIF + CXXFLAGS += -Iinclude @GNU_ONLY MAKEFLAGS += --no-print-directory |