From 02e22a5d09f2ab30ecb9d79bf5470ab1cb4e999e Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Fri, 9 Aug 2024 01:21:44 +0200 Subject: [PATCH] Autotools: Remove DEBUG_CFLAGS (#15300) DEBUG_CFLAGS is at this point redundant variable. --- Zend/Zend.m4 | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Zend/Zend.m4 b/Zend/Zend.m4 index 66880aab231..fe3defed2ef 100644 --- a/Zend/Zend.m4 +++ b/Zend/Zend.m4 @@ -176,7 +176,7 @@ AH_TEMPLATE([ZEND_DEBUG], [Define to 1 if debugging is enabled, and to 0 if not.]) AS_VAR_IF([ZEND_DEBUG], [yes], [ AC_DEFINE([ZEND_DEBUG], [1]) - echo " $CFLAGS" | grep ' -g' >/dev/null || DEBUG_CFLAGS="-g" + echo " $CFLAGS" | grep ' -g' >/dev/null || CFLAGS="$CFLAGS -g" if test "$CFLAGS" = "-g -O2"; then CFLAGS=-g fi @@ -193,8 +193,6 @@ AX_CHECK_COMPILE_FLAG([-Wformat-truncation], CFLAGS="-Wformat-truncation $CFLAGS AX_CHECK_COMPILE_FLAG([-Wstrict-prototypes], CFLAGS="-Wstrict-prototypes $CFLAGS", , [-Werror]) AX_CHECK_COMPILE_FLAG([-fno-common], CFLAGS="-fno-common $CFLAGS", , [-Werror]) -AS_VAR_IF([DEBUG_CFLAGS],,, [AS_VAR_APPEND([CFLAGS], [" $DEBUG_CFLAGS"])]) - ZEND_CHECK_ALIGNMENT ZEND_CHECK_SIGNALS ZEND_CHECK_MAX_EXECUTION_TIMERS