]> granicus.if.org Git - php/commitdiff
- Fixed -g adding for gcc and g++ (former got it twice, latter not at all)
authorJani Taskinen <jani@php.net>
Tue, 2 Nov 2010 09:58:08 +0000 (09:58 +0000)
committerJani Taskinen <jani@php.net>
Tue, 2 Nov 2010 09:58:08 +0000 (09:58 +0000)
configure.in
scripts/phpize.m4

index 7cbb0ac7cf4668186be067a5686602cf3580dcb6..6ea957dfde3986f05954a6958cc0f4dba0820960 100644 (file)
@@ -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
index 07e6037fbc01259ec54f1eccca4ba4db377274e8..e3a30a50c5c0a655749238979a87913eb5fd6c51 100644 (file)
@@ -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