summaryrefslogtreecommitdiff
path: root/make/template/main.mk
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2015-01-22 12:19:01 +0100
committerAttila Molnar <attilamolnar@hush.com>2015-01-22 12:19:01 +0100
commit365e2b45f871d80debb135b0f26766538d10809d (patch)
treeac245a8426081ec128138a25ae9593b4e49a9fad /make/template/main.mk
parent74d469af3937518f7619a78bc2fe99a4d662deea (diff)
Disable RTTI in release builds (compile with -fno-rtti)
Diffstat (limited to 'make/template/main.mk')
-rw-r--r--make/template/main.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/make/template/main.mk b/make/template/main.mk
index 521888bea..39e2b1c23 100644
--- a/make/template/main.mk
+++ b/make/template/main.mk
@@ -93,7 +93,7 @@ INSTMODE_LIB = 0640
DBGOK=0
@IFEQ $(D) 0
- CORECXXFLAGS += -O2
+ CORECXXFLAGS += -fno-rtti -O2
@IFEQ $(COMPILER) GCC
CORECXXFLAGS += -g1
@ENDIF
@@ -101,12 +101,12 @@ DBGOK=0
DBGOK=1
@ENDIF
@IFEQ $(D) 1
- CORECXXFLAGS += -O0 -g3 -Werror
+ CORECXXFLAGS += -O0 -g3 -Werror -DINSPIRCD_ENABLE_RTTI
HEADER = debug-header
DBGOK=1
@ENDIF
@IFEQ $(D) 2
- CORECXXFLAGS += -O2 -g3
+ CORECXXFLAGS += -fno-rtti -O2 -g3
HEADER = debug-header
DBGOK=1
@ENDIF