Build: remove --disable-wx-debug

WxWidgets switched to using -DNDEBUG to disable debugging in version 2.9.1 and enabling it by default. My previous change (530eb18) made the debug version the default and one had to disable the debugging for release builds. This is fixed now and the non-debug version is the default. Now WxWidgets debug assertions are switched on if --enable-debug is specified.

fixes #1476
This commit is contained in:
Christian Beer 2016-01-26 17:46:56 +01:00
parent d3ec1da547
commit cc67f461cf
2 changed files with 2 additions and 10 deletions

View File

@ -1245,10 +1245,8 @@ AC_SUBST(CLIENTLIBS)
if test "${enable_debug}" = "yes" ; then
CLIENTGUIFLAGS="${CLIENTGUIFLAGS} -D_DEBUG -DDEBUG"
fi
# disable wxWidgets debug support which is by default enabled since 2.9.1
if test "${enable_wx_debug}" = "no" ; then
else
# disable wxWidgets debug support which is by default enabled since 2.9.1
CLIENTGUIFLAGS="${CLIENTGUIFLAGS} -DNDEBUG"
fi

View File

@ -8,12 +8,6 @@ AC_DEFUN([BOINC_OPTIONS_WXWIDGETS],[
[enable_unicode="$enableval"],
[])
AC_ARG_ENABLE(wx-debug,
AS_HELP_STRING([--disable-wx-debug],
[disable wxWidgets debug support]),
[enable_wx_debug="$enableval"],
[enable_wx_debug=yes])
AM_OPTIONS_WXCONFIG
AM_PATH_WXCONFIG($1, [_ac_cv_have_wxwidgets=yes], [_ac_cv_have_wxwidgets=no])
AC_CACHE_CHECK([if wxWidgets works],[ac_cv_have_wxwidgets],