From ed4cd4c75016b1d7be1451178f80497e6718ce8f Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Mon, 25 Sep 2006 11:05:29 +0000 Subject: [PATCH] change CXXFLAGS along with CFLAGS as there might be C++ code --- configure.in | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.50.1