From: Carsten Grzemba Date: Mon, 11 Apr 2016 13:14:25 +0000 (+1200) Subject: Bug 4483: ./configure garbles -Og option in CFLAGS X-Git-Tag: SQUID_3_5_17~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2290969700b3215253de22105f534e6d0e0d6a51;p=thirdparty%2Fsquid.git Bug 4483: ./configure garbles -Og option in CFLAGS --- diff --git a/configure.ac b/configure.ac index 8c0e8163cc..314c818065 100644 --- a/configure.ac +++ b/configure.ac @@ -399,8 +399,8 @@ AC_ARG_ENABLE(optimizations, --disable-inline]), [ if test "x$enableval" = "xno" ; then AC_MSG_NOTICE([Disabling compiler optimizations (-O flag)]) - CFLAGS="`echo $CFLAGS | sed -e 's/-O[[0-9]]*//'`" - CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-O[[0-9]]*//'`" + CFLAGS="`echo $CFLAGS | sed -e 's/-O[[0-9g]]*//'`" + CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-O[[0-9g]]*//'`" enable_inline="no" fi ]) @@ -3237,7 +3237,7 @@ case "$host" in i386-*-solaris2.*) if test "x$GCC" = "xyes"; then AC_MSG_NOTICE([Removing -O for gcc on $host]) - CFLAGS="`echo $CFLAGS | sed -e 's/-O[[0-9]]*//'`" + CFLAGS="`echo $CFLAGS | sed -e 's/-O[[0-9g]]*//'`" fi ;;