Skip to content

Commit d7a8a04

Browse files
committed
Autotools: Remove too basic optimization flag cleanup
The optimization flags are removed in configure.ac when using the '--enable-debug' configure option (which also adds the '-O0'). When using '--enable-debug-assertions' option, the optimization flags ideally shouldn't be removed and this case never actually happen because the CFLAGS at this point in ZEND_INIT contain all sorts of other flags also, so it's redundant as it never gets executed. Closes phpGH-15305
1 parent 46ee0fb commit d7a8a04

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

Zend/Zend.m4

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,6 @@ AH_TEMPLATE([ZEND_DEBUG],
177177
AS_VAR_IF([ZEND_DEBUG], [yes], [
178178
AC_DEFINE([ZEND_DEBUG], [1])
179179
echo " $CFLAGS" | grep ' -g' >/dev/null || CFLAGS="$CFLAGS -g"
180-
if test "$CFLAGS" = "-g -O2"; then
181-
CFLAGS=-g
182-
fi
183180
], [AC_DEFINE([ZEND_DEBUG], [0])])
184181
185182
AS_VAR_IF([GCC], [yes],

0 commit comments

Comments
 (0)