]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 4483: ./configure garbles -Og option in CFLAGS
authorCarsten Grzemba <cgrzemba@opencsw.org>
Mon, 11 Apr 2016 13:14:25 +0000 (01:14 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 11 Apr 2016 13:14:25 +0000 (01:14 +1200)
configure.ac

index 8c0e8163ccbaf141111b61d6c4781f298bcafeb0..314c818065bfa1b8691d64e7bcd9cad8dd88a88e 100644 (file)
@@ -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
   ;;