diff --git a/configure.in b/configure.in index a1006ee4d4..db8eb04df0 100644 --- a/configure.in +++ b/configure.in @@ -4659,7 +4659,9 @@ fi if test "$wxUSE_DEBUG_GDB" = "yes" ; then wxUSE_DEBUG_INFO=yes - WXDEBUG="-ggdb" + if test "$GCC" = yes; then + WXDEBUG="-ggdb" + fi fi if test "$wxUSE_DEBUG_FLAG" = "yes" ; then