From: Sascha Schumann Date: Wed, 6 Sep 2000 18:37:39 +0000 (+0000) Subject: Unless overwritten, default to no optimization in debug mode. X-Git-Tag: php-4.0.3RC1~269 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5669b2dd2614d6802c9e62ef41a9ce7e080b6406;p=php Unless overwritten, default to no optimization in debug mode. --- diff --git a/Zend/Zend.m4 b/Zend/Zend.m4 index 0107d8f09b..f44ef7072e 100644 --- a/Zend/Zend.m4 +++ b/Zend/Zend.m4 @@ -148,6 +148,9 @@ AC_MSG_RESULT($ZEND_DEBUG) if test "$ZEND_DEBUG" = "yes"; then AC_DEFINE(ZEND_DEBUG,1,[ ]) echo " $CFLAGS" | grep ' -g' >/dev/null || DEBUG_CFLAGS="-g" + if test "$CFLAGS" = "-g -O2"; then + CFLAGS=-g + fi test -n "$GCC" && DEBUG_CFLAGS="$DEBUG_CFLAGS -Wall" test -n "$GCC" && test "$USE_MAINTAINER_MODE" = "yes" && \ DEBUG_CFLAGS="$DEBUG_CFLAGS -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"