]> granicus.if.org Git - php/commitdiff
use -O0 with --enable-debug
authorAntony Dovgal <tony2001@php.net>
Sun, 6 Aug 2006 20:46:02 +0000 (20:46 +0000)
committerAntony Dovgal <tony2001@php.net>
Sun, 6 Aug 2006 20:46:02 +0000 (20:46 +0000)
configure.in

index 685b875cf0c400813f0d727f81e65ba93228ca15..f9df4138650e26c83f73a903a8525d3e7d755b15 100644 (file)
@@ -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