]> git.saurik.com Git - wxWidgets.git/commitdiff
Make --disable-debug[_flag] configure option really work.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 22 Jul 2010 13:42:43 +0000 (13:42 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 22 Jul 2010 13:42:43 +0000 (13:42 +0000)
We never defined wxDEBUG_LEVEL as 0 meaning that debugging code in wxWidgets
was always enabled, even if --disable-debug_flag or --disable-debug (which
implies it) was given.

Fix this now by adding -DwxDEBUG_LEVEL=0 to CPPFLAGS if necessary.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65045 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

configure
configure.in

index 5ef7cfea918c612ae9831d34e24393eb23f4e4fd..634446cb349f0da876ad045e9d06906df2af9da6 100755 (executable)
--- a/configure
+++ b/configure
@@ -42527,6 +42527,8 @@ if test "$wxUSE_DEBUG_GDB" = "yes" ; then
 fi
 
 if test "$wxUSE_DEBUG_FLAG" = "no" ; then
+    WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=0"
+
     if test "$wxUSE_GTK" = 1 ; then
         if test "x$wxGTK_VERSION" = "x1" ; then
             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
index ab9b2170141a189d696acd9e9a9d1e11402d76c2..b8617a503ec1511fc883df9751957628c22854f4 100644 (file)
@@ -5393,6 +5393,8 @@ if test "$wxUSE_DEBUG_GDB" = "yes" ; then
 fi
 
 if test "$wxUSE_DEBUG_FLAG" = "no" ; then
+    WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -DwxDEBUG_LEVEL=0"
+
     if test "$wxUSE_GTK" = 1 ; then
         if test "x$wxGTK_VERSION" = "x1" ; then
             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"