From f5d5adf87d9053fc8ec293c15c36677fc2e72475 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 22 Jul 2010 13:42:43 +0000 Subject: [PATCH] Make --disable-debug[_flag] configure option really work. 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 | 2 ++ configure.in | 2 ++ 2 files changed, 4 insertions(+) diff --git a/configure b/configure index 5ef7cfea91..634446cb34 100755 --- 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" diff --git a/configure.in b/configure.in index ab9b217014..b8617a503e 100644 --- a/configure.in +++ b/configure.in @@ -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" -- 2.47.2