From: Antony Dovgal Date: Sun, 6 Aug 2006 20:46:02 +0000 (+0000) Subject: use -O0 with --enable-debug X-Git-Tag: php-5.2.0RC2~91 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c75d829975c0e1ecf72062436e289ab618bf2bb;p=php use -O0 with --enable-debug --- diff --git a/configure.in b/configure.in index 685b875cf0..f9df413865 100644 --- a/configure.in +++ b/configure.in @@ -676,6 +676,10 @@ PHP_ARG_ENABLE(debug, whether to include debugging symbols, if test "$PHP_DEBUG" = "yes"; then PHP_DEBUG=1 ZEND_DEBUG=yes + changequote({,}) + CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9]*//g'` + changequote([,]) + CFLAGS="$CFLAGS -O0" else PHP_DEBUG=0 ZEND_DEBUG=no