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

index 81d4ddc680458de9045b22cf05ef06ec7d588a21..a0b72e87874dd991f645510a3bbaf0d178767a39 100644 (file)
@@ -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
   ;;