aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMax Horn2006-04-15 00:12:14 +0000
committerMax Horn2006-04-15 00:12:14 +0000
commit0bad4c701eca214c6c9863a57b1a3557c67d7b91 (patch)
tree4138df34b6f9f92c7b2e7e6a42eea2d6978696c0 /Makefile
parent04709491f77c84108b371b15bb5b9797e0e0c1a2 (diff)
downloadscummvm-rg350-0bad4c701eca214c6c9863a57b1a3557c67d7b91.tar.gz
scummvm-rg350-0bad4c701eca214c6c9863a57b1a3557c67d7b91.tar.bz2
scummvm-rg350-0bad4c701eca214c6c9863a57b1a3557c67d7b91.zip
Disable RTTI and exceptions (we don't use 'em and over here it saves 700kb in the executable)
svn-id: r21895
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index be40f3bd24..673078d832 100644
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,10 @@ CXXFLAGS+= -Wno-long-long -Wno-multichar -Wno-unknown-pragmas
# Even more warnings...
CXXFLAGS+= -pedantic -Wpointer-arith -Wcast-qual -Wconversion
CXXFLAGS+= -Wshadow -Wimplicit -Wundef -Wnon-virtual-dtor
-CXXFLAGS+= -Wno-reorder -Wwrite-strings -fcheck-new
+CXXFLAGS+= -Wno-reorder -Wwrite-strings
+
+# Disable RTTI and exceptions, and enabled checking of pointers returned by "new"
+CXXFLAGS+= -fno-rtti -fno-exceptions -fcheck-new
#######################################################################
# Misc stuff - you should never have to edit this #