]> granicus.if.org Git - php/commitdiff
Unless overwritten, default to no optimization in debug mode.
authorSascha Schumann <sas@php.net>
Wed, 6 Sep 2000 18:37:39 +0000 (18:37 +0000)
committerSascha Schumann <sas@php.net>
Wed, 6 Sep 2000 18:37:39 +0000 (18:37 +0000)
Zend/Zend.m4

index 0107d8f09bb912bff43bdaa521dffb4f87667de0..f44ef7072edcd49ad4655625a33bd81a9f2ffeb3 100644 (file)
@@ -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"