From: Antony Dovgal Date: Fri, 6 Jul 2007 10:58:36 +0000 (+0000) Subject: fix #41908 (CFLAGS="-Os" ./configure --enable-debug fails) X-Git-Tag: BEFORE_IMPORT_OF_MYSQLND~311 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d850ea2172e6bafc523ceff6a407296d6b13d254;p=php fix #41908 (CFLAGS="-Os" ./configure --enable-debug fails) patch by christian at hoffie dot info --- diff --git a/configure.in b/configure.in index 2d906c42d8..ea1c9a9114 100644 --- a/configure.in +++ b/configure.in @@ -675,8 +675,8 @@ 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'` + CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'` + CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'` changequote([,]) dnl Add the special gcc flags @@ -691,8 +691,8 @@ if test "$PHP_DEBUG" = "yes"; then PHP_DEBUG=1 ZEND_DEBUG=yes changequote({,}) - CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'` - CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9]*//g'` + CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'` + CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'` changequote([,]) dnl add -O0 only if GCC or ICC is used if test "$GCC" = "yes" || test "$ICC" = "yes"; then