From 6c75d829975c0e1ecf72062436e289ab618bf2bb Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Sun, 6 Aug 2006 20:46:02 +0000 Subject: [PATCH] use -O0 with --enable-debug --- configure.in | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.50.1