Skip to content

Commit 793800c

Browse files
committed
MFH: fix #41908 (CFLAGS="-Os" ./configure --enable-debug fails)
patch by christian at hoffie dot info
1 parent 28b73af commit 793800c

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ PHP NEWS
4848
- Fixed PECL bug #11216 (crash in ZipArchive::addEmptyDir when a directory
4949
already exists). (Pierre)
5050

51+
- Fixed bug #41908 (CFLAGS="-Os" ./configure --enable-debug fails).
52+
(christian at hoffie dot info, Tony)
5153
- Fixed bug #41909 (var_export() is locale sensitive when exporting float
5254
values). (Derick)
5355
- Fixed bug #41867 (getName is broken). (Rob)

configure.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -678,8 +678,8 @@ if test "$PHP_GCOV" = "yes"; then
678678

679679
dnl Remove all optimization flags from CFLAGS
680680
changequote({,})
681-
CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
682-
CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9]*//g'`
681+
CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
682+
CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'`
683683
changequote([,])
684684

685685
dnl Add the special gcc flags
@@ -694,8 +694,8 @@ if test "$PHP_DEBUG" = "yes"; then
694694
PHP_DEBUG=1
695695
ZEND_DEBUG=yes
696696
changequote({,})
697-
CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'`
698-
CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9]*//g'`
697+
CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
698+
CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'`
699699
changequote([,])
700700
dnl add -O0 only if GCC or ICC is used
701701
if test "$GCC" = "yes" || test "$ICC" = "yes"; then

0 commit comments

Comments
 (0)