From: Antony Dovgal Date: Sun, 6 Aug 2006 20:45:42 +0000 (+0000) Subject: use -O0 with --enable-debug X-Git-Tag: RELEASE_1_0_0RC1~2068 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=92b7dfb890936bf86114f8b29b8ecbf2e09f8f18;p=php use -O0 with --enable-debug --- diff --git a/configure.in b/configure.in index 0cb090bc6b..c5270bbedb 100644 --- a/configure.in +++ b/configure.in @@ -674,6 +674,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