summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorEduardo Chappa <chappa@washington.edu>2021-10-04 22:00:14 -0600
committerEduardo Chappa <chappa@washington.edu>2021-10-04 22:00:14 -0600
commit52d9d31265899fc6805dceb0f64cdd03b06995a8 (patch)
tree37ecf40fe8aa60893583bcda870cd66a0ec562e8 /configure
parent76da583d4aa4600148048c4cb025d9248d41326c (diff)
downloadalpine-52d9d31265899fc6805dceb0f64cdd03b06995a8.tar.xz
* the option --disable-optimization to the configure script does not
eliminate optimization if it comes from the CFLAGS variable. This commit fixes that.
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
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