From: Carsten Grzemba Date: Wed, 6 Apr 2016 14:46:39 +0000 (+1200) Subject: Bug 4483: ./configure garbles -Og option in CFLAGS X-Git-Tag: SQUID_4_0_9~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d044196156904985bf51cef4efa677a83585bbd2;p=thirdparty%2Fsquid.git Bug 4483: ./configure garbles -Og option in CFLAGS --- diff --git a/configure.ac b/configure.ac index 81d4ddc680..a0b72e8787 100644 --- a/configure.ac +++ b/configure.ac @@ -380,8 +380,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 ]) @@ -3226,7 +3226,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 ;;