diff --git a/configure.in b/configure.in index 5b1f780260..bd9eec7425 100644 --- a/configure.in +++ b/configure.in @@ -149,6 +149,7 @@ if test "${enable_debug}" = "yes"; then if test "x${ax_cv_c_compiler_vendor}" = "xgnu" ; then APR_ADDTO(SWITCH_AM_CFLAGS, -g -ggdb) + export DEBUG_CFLAGS="-g -ggdb" fi fi diff --git a/libs/sofia-sip/configure.gnu b/libs/sofia-sip/configure.gnu index 12fe773bd0..7bd9c100c5 100644 --- a/libs/sofia-sip/configure.gnu +++ b/libs/sofia-sip/configure.gnu @@ -1,3 +1,3 @@ #! /bin/sh -CFLAGS="$CFLAGS -DSU_DEBUG=0" ./configure "$@" --with-pic --with-glib=no --disable-shared +CFLAGS="$CFLAGS -DSU_DEBUG=0 $DEBUG_CFLAGS" ./configure "$@" --with-pic --with-glib=no --disable-shared