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

index 3a62103ff63725533e9e5a38a4be8d2a8eb7def2..16ea66ed91e54f8807b0e03a1c3fc6e42de6f2de 100644 (file)
@@ -665,10 +665,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,
@@ -679,8 +681,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