git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2807
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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
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} "