From 52d9d31265899fc6805dceb0f64cdd03b06995a8 Mon Sep 17 00:00:00 2001 From: Eduardo Chappa Date: Mon, 4 Oct 2021 22:00:14 -0600 Subject: * the option --disable-optimization to the configure script does not eliminate optimization if it comes from the CFLAGS variable. This commit fixes that. --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 554c735e..9549ddb6 100644 --- a/configure.ac +++ b/configure.ac @@ -243,7 +243,8 @@ AC_ARG_ENABLE(optimization, AS_HELP_STRING([--disable-optimization],[Exclude opt if test x$enable_optimization != "xno" ; then AC_MSG_RESULT([yes]) else - C_FLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`" + CFLAGS="`echo $CFLAGS | ${SED} 's/-O2//g'`" + C_FLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//g'`" CFLAGS="$CFLAGS $C_FLAGS" alpine_c_client_gccoptlevel="-O0" AC_MSG_RESULT([no]) -- cgit v1.2.3-54-g00ecf