From: Antony Dovgal Date: Fri, 6 Jul 2007 10:44:23 +0000 (+0000) Subject: MFH: fix #41908 (CFLAGS="-Os" ./configure --enable-debug fails) X-Git-Tag: php-5.2.4RC1~226 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=793800c78ea881d4e51e198008402fcf4ab29271;p=php MFH: fix #41908 (CFLAGS="-Os" ./configure --enable-debug fails) patch by christian at hoffie dot info --- diff --git a/NEWS b/NEWS index d9f4d3baa2..225cb43021 100644 --- a/NEWS +++ b/NEWS @@ -48,6 +48,8 @@ PHP NEWS - Fixed PECL bug #11216 (crash in ZipArchive::addEmptyDir when a directory already exists). (Pierre) +- Fixed bug #41908 (CFLAGS="-Os" ./configure --enable-debug fails). + (christian at hoffie dot info, Tony) - Fixed bug #41909 (var_export() is locale sensitive when exporting float values). (Derick) - Fixed bug #41867 (getName is broken). (Rob) diff --git a/configure.in b/configure.in index 6045367b8e..623f4c8680 100644 --- a/configure.in +++ b/configure.in @@ -678,8 +678,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 @@ -694,8 +694,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