Skip to content

Commit 02e22a5

Browse files
authored
Autotools: Remove DEBUG_CFLAGS (#15300)
DEBUG_CFLAGS is at this point redundant variable.
1 parent 25b4696 commit 02e22a5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Zend/Zend.m4

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ AH_TEMPLATE([ZEND_DEBUG],
176176
[Define to 1 if debugging is enabled, and to 0 if not.])
177177
AS_VAR_IF([ZEND_DEBUG], [yes], [
178178
AC_DEFINE([ZEND_DEBUG], [1])
179-
echo " $CFLAGS" | grep ' -g' >/dev/null || DEBUG_CFLAGS="-g"
179+
echo " $CFLAGS" | grep ' -g' >/dev/null || CFLAGS="$CFLAGS -g"
180180
if test "$CFLAGS" = "-g -O2"; then
181181
CFLAGS=-g
182182
fi
@@ -193,8 +193,6 @@ AX_CHECK_COMPILE_FLAG([-Wformat-truncation], CFLAGS="-Wformat-truncation $CFLAGS
193193
AX_CHECK_COMPILE_FLAG([-Wstrict-prototypes], CFLAGS="-Wstrict-prototypes $CFLAGS", , [-Werror])
194194
AX_CHECK_COMPILE_FLAG([-fno-common], CFLAGS="-fno-common $CFLAGS", , [-Werror])
195195
196-
AS_VAR_IF([DEBUG_CFLAGS],,, [AS_VAR_APPEND([CFLAGS], [" $DEBUG_CFLAGS"])])
197-
198196
ZEND_CHECK_ALIGNMENT
199197
ZEND_CHECK_SIGNALS
200198
ZEND_CHECK_MAX_EXECUTION_TIMERS

0 commit comments

Comments
 (0)