summaryrefslogtreecommitdiff
path: root/configure.ac
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.ac
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.ac')
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
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])