summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJani Taskinen <jani@php.net>2010-11-02 09:58:08 +0000
committerJani Taskinen <jani@php.net>2010-11-02 09:58:08 +0000
commit309a56f3f7c5735e09a25e62667be8700d4db7d6 (patch)
treebe15dddf034d57e25e81e49dbb26893252f43fd2
parent743f50927cf818a1d9c69e351573f60093d361f5 (diff)
downloadphp-git-309a56f3f7c5735e09a25e62667be8700d4db7d6.tar.gz
- Fixed -g adding for gcc and g++ (former got it twice, latter not at all)
-rw-r--r--configure.in2
-rw-r--r--scripts/phpize.m42
2 files changed, 2 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 7cbb0ac7cf..6ea957dfde 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