Commit 68ecbff Issue 49684 - AC_PROG_CC clobbers CFLAGS set by --enable-debug

1 file Authored and Committed by vashirov 3 months ago
Issue 49684 - AC_PROG_CC clobbers CFLAGS set by --enable-debug

Bug Description:
AC_PROG_CC macro sets CFLAGS/CXXFLAGS environment variable to ` -g -O2`
for GCC if CFLAGS/CXXFLAGS are not defined.

Fix Description:
Use an empty default for CFLAGS and CXXFLAGS instead.

https://pagure.io/389-ds-base/issue/49684

Reviewed by: mreynolds (Thanks!)

    
 1 @@ -27,7 +27,9 @@
 2   AC_CONFIG_MACRO_DIRS([m4])
 3   
 4   # Checks for programs.
 5 + : ${CXXFLAGS=""}
 6   AC_PROG_CXX
 7 + : ${CFLAGS=""}
 8   AC_PROG_CC
 9   AM_PROG_CC_C_O
10   AM_PROG_AS