From 365e2b45f871d80debb135b0f26766538d10809d Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Thu, 22 Jan 2015 12:19:01 +0100 Subject: Disable RTTI in release builds (compile with -fno-rtti) --- make/template/main.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'make/template/main.mk') 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 -- cgit v1.2.3