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

configure.in

index 2d906c42d854174d409e74331ac7c2bd44a860c8..ea1c9a911457ac9ff58ae73d3b501a9bdb67a01f 100644 (file)
@@ -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