From: Antony Dovgal Date: Mon, 25 Sep 2006 11:05:49 +0000 (+0000) Subject: MFH: change CXXFLAGS along with CFLAGS as there might be C++ code X-Git-Tag: php-5.2.0RC5~106 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f36b3ca9adf594d24c6b949f7387aad0dd32d8b6;p=php MFH: change CXXFLAGS along with CFLAGS as there might be C++ code --- diff --git a/configure.in b/configure.in index 3a62103ff6..16ea66ed91 100644 --- a/configure.in +++ b/configure.in @@ -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