summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Zend/Zend.m42
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/Zend.m4 b/Zend/Zend.m4
index 9da6a53e4c..3234844d88 100644
--- a/Zend/Zend.m4
+++ b/Zend/Zend.m4
@@ -140,7 +140,7 @@ AC_MSG_RESULT($ZEND_DEBUG)
if test "$ZEND_DEBUG" = "yes"; then
AC_DEFINE(ZEND_DEBUG,1)
- DEBUG_CFLAGS="-g"
+ echo " $CFLAGS" | grep ' -g' >/dev/null || DEBUG_CFLAGS="-g"
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"