summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-11 04:34:38 +0000
committerdanieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7>2010-02-11 04:34:38 +0000
commit7cc4e61f0edf9e45b5db415bdc6ed7bf5ed36c39 (patch)
treede46221e13ef509d2de40f3d9e8590e2cd13c1ab
parentdb2a4c2c15bb170464bbff464d7cc79cd098df26 (diff)
Allow "make QUICK=1" to speed up the compile (disables -O2)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12431 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--make/template/main.mk8
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