From 92b7dfb890936bf86114f8b29b8ecbf2e09f8f18 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Sun, 6 Aug 2006 20:45:42 +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 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 -- 2.50.1