From d044196156904985bf51cef4efa677a83585bbd2 Mon Sep 17 00:00:00 2001 From: Carsten Grzemba Date: Thu, 7 Apr 2016 02:46:39 +1200 Subject: [PATCH] Bug 4483: ./configure garbles -Og option in CFLAGS --- configure.ac | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ;; -- 2.47.3