From 7cc4e61f0edf9e45b5db415bdc6ed7bf5ed36c39 Mon Sep 17 00:00:00 2001 From: danieldg Date: Thu, 11 Feb 2010 04:34:38 +0000 Subject: 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 --- make/template/main.mk | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'make/template') 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 -- cgit v1.2.3