From: Antony Dovgal Date: Mon, 25 Sep 2006 11:05:29 +0000 (+0000) Subject: change CXXFLAGS along with CFLAGS as there might be C++ code X-Git-Tag: RELEASE_1_0_0RC1~1549 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed4cd4c75016b1d7be1451178f80497e6718ce8f;p=php change CXXFLAGS along with CFLAGS as there might be C++ code --- diff --git a/configure.in b/configure.in index 6dbdec23c8..699e00f01c 100644 --- a/configure.in +++ b/configure.in @@ -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