From: Jani Taskinen Date: Tue, 2 Nov 2010 09:58:08 +0000 (+0000) Subject: - Fixed -g adding for gcc and g++ (former got it twice, latter not at all) X-Git-Tag: php-5.3.4RC1~94 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=309aefc7e7a22225fccb4a2b9e3dbb50b6b50d78;p=php - Fixed -g adding for gcc and g++ (former got it twice, latter not at all) --- diff --git a/configure.in b/configure.in index 0efb672e63..c5a65e8e3a 100644 --- a/configure.in +++ b/configure.in @@ -764,7 +764,7 @@ if test "$PHP_DEBUG" = "yes"; then changequote([,]) dnl add -O0 only if GCC or ICC is used if test "$GCC" = "yes" || test "$ICC" = "yes"; then - CFLAGS="$CFLAGS -g -O0" + CFLAGS="$CFLAGS -O0" CXXFLAGS="$CXXFLAGS -g -O0" fi if test "$SUNCC" = "yes"; then diff --git a/scripts/phpize.m4 b/scripts/phpize.m4 index 07e6037fbc..e3a30a50c5 100644 --- a/scripts/phpize.m4 +++ b/scripts/phpize.m4 @@ -111,7 +111,7 @@ if test "$PHP_DEBUG" = "yes"; then dnl add -O0 only if GCC or ICC is used if test "$GCC" = "yes" || test "$ICC" = "yes"; then CFLAGS="$CFLAGS -O0" - CXXFLAGS="$CXXFLAGS -O0" + CXXFLAGS="$CXXFLAGS -g -O0" fi if test "$SUNCC" = "yes"; then if test -n "$auto_cflags"; then