diff configure.in @ 996:2ed439264264

Added "-fno-rtti -fno-exceptions" to CXXFLAGS (reduces binary size)
author Jorge Arellano Cid <jcid@dillo.org>
date Wed, 11 Mar 2009 09:14:43 -0300
parents 8d747af3b6d7
children 8f682d270874
line wrap: on
line diff
--- a/configure.in	Wed Mar 11 11:09:44 2009 +0100
+++ b/configure.in	Wed Mar 11 09:14:43 2009 -0300
@@ -481,7 +481,10 @@
 dnl CXX options
 dnl -----------
 dnl
-CXXFLAGS="$CXXFLAGS -Wall -W -Wno-unused-parameter"
+
+if eval "test x$GCC = xyes"; then
+  CXXFLAGS="$CXXFLAGS -Wall -W -Wno-unused-parameter -fno-rtti -fno-exceptions"
+fi
 
 AC_SUBST(LIBJPEG_LIBS)
 AC_SUBST(LIBJPEG_LDFLAGS)