]> granicus.if.org Git - php/commitdiff
change CXXFLAGS along with CFLAGS as there might be C++ code
authorAntony Dovgal <tony2001@php.net>
Mon, 25 Sep 2006 11:05:29 +0000 (11:05 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 25 Sep 2006 11:05:29 +0000 (11:05 +0000)
configure.in

index 6dbdec23c849211e4c5ce0783f0ae5f209b10660..699e00f01cb6705ce5598693ecafc489930d7442 100644 (file)
@@ -663,10 +663,12 @@ if test "$PHP_GCOV" = "yes"; then
   dnl Remove all optimization flags from CFLAGS
   changequote({,})
   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
+  CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9]*//g'`
   changequote([,])
 
   dnl Add the special gcc flags
   CFLAGS="$CFLAGS -O0 -fprofile-arcs -ftest-coverage"
+  CXXFLAGS="$CXXFLAGS -O0 -fprofile-arcs -ftest-coverage"
 fi
 
 PHP_ARG_ENABLE(debug, whether to include debugging symbols,
@@ -677,8 +679,10 @@ if test "$PHP_DEBUG" = "yes"; then
   ZEND_DEBUG=yes
   changequote({,})
   CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
+  CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9]*//g'`
   changequote([,])
   CFLAGS="$CFLAGS -O0"
+  CXXFLAGS="$CXXFLAGS -O0"
 else
   PHP_DEBUG=0
   ZEND_DEBUG=no