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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'configure') diff --git a/configure b/configure index 9d6565a1..91d9797c 100755 --- a/configure +++ b/configure @@ -15185,7 +15185,8 @@ if test x$enable_optimization != "xno" ; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 $as_echo "yes" >&6; } 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" { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -- cgit v1.2.3-70-g09d2