diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-01-22 12:19:01 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-01-22 12:19:01 +0100 |
commit | 365e2b45f871d80debb135b0f26766538d10809d (patch) | |
tree | ac245a8426081ec128138a25ae9593b4e49a9fad /make/template/main.mk | |
parent | 74d469af3937518f7619a78bc2fe99a4d662deea (diff) |
Disable RTTI in release builds (compile with -fno-rtti)
Diffstat (limited to 'make/template/main.mk')
-rw-r--r-- | make/template/main.mk | 6 |
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 |