diff options
author | Eduardo Chappa <chappa@washington.edu> | 2021-05-08 10:41:05 -0600 |
---|---|---|
committer | Eduardo Chappa <chappa@washington.edu> | 2021-05-08 10:41:05 -0600 |
commit | 2f953255a8c494e3033015eb064c6ecace9ffeda (patch) | |
tree | 9fe0ca9189579da1f216672f5afccb92dc9a09ce /configure.ac | |
parent | 7ff6ecbd42b1e95696015ce07433097143fd9aeb (diff) | |
download | alpine-2f953255a8c494e3033015eb064c6ecace9ffeda.tar.xz |
* Compilation bug: Setting --disable-optimization during compilation
time erased the CFLAGS environment variable.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index dfc83dd..554c735 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 - CFLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`" + C_FLAGS="`echo $AM_CFLAGS | ${SED} 's/-O2//'`" + CFLAGS="$CFLAGS $C_FLAGS" alpine_c_client_gccoptlevel="-O0" AC_MSG_RESULT([no]) fi |