Make sure that --disable-optimization works in its attempt to replace -Ox with -O0.
authorAndrey Jivsov <openpgp@brainhub.org>
Thu, 6 Jan 2011 01:31:47 +0000 (17:31 -0800)
committerAndrey Jivsov <openpgp@brainhub.org>
Thu, 6 Jan 2011 01:31:47 +0000 (17:31 -0800)
configure.ac

index b6ed4b3..9757330 100644 (file)
@@ -1466,7 +1466,7 @@ AC_ARG_ENABLE(optimization,
    AC_HELP_STRING([--disable-optimization],
                   [disable compiler optimization]),
                   [if test $enableval = no ; then
-                      CFLAGS=`echo $CFLAGS | sed 's/-O[[0-9]]//'`
+                      CFLAGS=`echo $CFLAGS | sed s/-O[[1-9]]\ /-O0\ /g`
                    fi])
 
 #