Permalink
Browse files

MFH: fix #41908 (CFLAGS="-Os" ./configure --enable-debug fails)

patch by christian at hoffie dot info
  • Loading branch information...
1 parent 28b73af commit 793800c78ea881d4e51e198008402fcf4ab29271 @tony2001 tony2001 committed Jul 6, 2007
Showing with 6 additions and 4 deletions.
  1. +2 −0 NEWS
  2. +4 −4 configure.in
View
2 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)
View
8 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

0 comments on commit 793800c

Please sign in to comment.