From 4655d4a5c19d3c9b2ac16690360bb7e877557002 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Thu, 8 Aug 2024 22:43:20 +0200 Subject: [PATCH] Autotools: Remove DEBUG_CFLAGS 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 66880aab2314f..fe3defed2efca 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