]> granicus.if.org Git - php/commitdiff
MFH: fix #41908 (CFLAGS="-Os" ./configure --enable-debug fails)
authorAntony Dovgal <tony2001@php.net>
Fri, 6 Jul 2007 10:44:23 +0000 (10:44 +0000)
committerAntony Dovgal <tony2001@php.net>
Fri, 6 Jul 2007 10:44:23 +0000 (10:44 +0000)
patch by christian at hoffie dot info

NEWS
configure.in

diff --git a/NEWS b/NEWS
index d9f4d3baa204fd25f3d634ff4405c46014170a4f..225cb430218c7b3cf8bf052e12ef496bac87f8f1 100644 (file)
--- 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)
index 6045367b8ea100c9c09ac5c63c91242196753493..623f4c868011148fa8769910b896ec709bfe5f9e 100644 (file)
@@ -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