]> git.saurik.com Git - wxWidgets.git/commitdiff
put -fno-rtti into wx-config
authorRobert Roebling <robert@roebling.de>
Wed, 16 Jun 1999 19:13:10 +0000 (19:13 +0000)
committerRobert Roebling <robert@roebling.de>
Wed, 16 Jun 1999 19:13:10 +0000 (19:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure.in

index 655e2deffb087074f29b9ce3ecc8b3c863c33579..838c2b2c109d627ea95efe472045b624005d5440 100644 (file)
@@ -1356,7 +1356,9 @@ if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
     AC_DEFINE(WXDEBUG)
     WXDEBUG_DEFINE="-D__WXDEBUG__"
 else
-    WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
+    if test "$wxUSE_GTK" = 1 ; then
+        WXDEBUG_DEFINE="-DGTK_NO_CHECK_CASTS"
+    fi
 fi
 
 if test "$wxUSE_MEM_TRACING" = "yes" ; then
@@ -1380,7 +1382,8 @@ if test "$wxUSE_OPTIMISE" = "no" ; then
     OPTIMISE=
 else
     if test "$GCC" = yes ; then
-        OPTIMISE="-O2 -fno-rtti -fno-exceptions"
+        OPTIMISE="-O2"
+       WXDEBUG_DEFINE="$WXDEBUG_DEFINE -fno-rtti -fno-exceptions"
         case "${host}" in
             i586-*-*|i686-*-* )
             OPTIMISE="${OPTIMISE} "