mirror of
https://github.com/php/php-src.git
synced 2024-11-29 04:46:07 +08:00
Don't set DEBUG_CFLAGS to -g, if -g is already in CFLAGS
This commit is contained in:
parent
23f92bfa20
commit
304f1ebcb2
@ -140,7 +140,7 @@ AC_MSG_RESULT($ZEND_DEBUG)
|
|||||||
|
|
||||||
if test "$ZEND_DEBUG" = "yes"; then
|
if test "$ZEND_DEBUG" = "yes"; then
|
||||||
AC_DEFINE(ZEND_DEBUG,1)
|
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" && DEBUG_CFLAGS="$DEBUG_CFLAGS -Wall"
|
||||||
test -n "$GCC" && test "$USE_MAINTAINER_MODE" = "yes" && \
|
test -n "$GCC" && test "$USE_MAINTAINER_MODE" = "yes" && \
|
||||||
DEBUG_CFLAGS="$DEBUG_CFLAGS -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
|
DEBUG_CFLAGS="$DEBUG_CFLAGS -Wmissing-prototypes -Wstrict-prototypes -Wmissing-declarations"
|
||||||
|
Loading…
Reference in New Issue
Block a user