summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-12-22 21:04:34 +0000
committerSascha Schumann <sas@php.net>1999-12-22 21:04:34 +0000
commit304f1ebcb2214a6545c8ec37b8c5a52da0f48991 (patch)
tree451011baf7d17fd64a009dac1ffc5a715fe97984
parent23f92bfa2017d8dc67a60cf14ee26d476ec14030 (diff)
downloadphp-git-304f1ebcb2214a6545c8ec37b8c5a52da0f48991.tar.gz
Don't set DEBUG_CFLAGS to -g, if -g is already in CFLAGS
-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"