make -O2 the default for release builds, but -O3 for gcc
authorJosh Coalson <jcoalson@users.sourceforce.net>
Mon, 19 May 2003 23:59:49 +0000 (23:59 +0000)
committerJosh Coalson <jcoalson@users.sourceforce.net>
Mon, 19 May 2003 23:59:49 +0000 (23:59 +0000)
configure.in

index e6e9b05..3a480cd 100644 (file)
@@ -358,9 +358,9 @@ OUR_CFLAGS_HEAD='-I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include'
 if test x$debug = xtrue; then
        OUR_CFLAGS_HEAD="$OUR_CFLAGS_HEAD -g -O0 -DDEBUG"
 else
-       OUR_CFLAGS_HEAD="$OUR_CFLAGS_HEAD -O3 -DNDEBUG"
+       OUR_CFLAGS_HEAD="$OUR_CFLAGS_HEAD -O2 -DNDEBUG"
        if test x$GCC = xyes; then
-               OUR_CFLAGS_HEAD="$OUR_CFLAGS_HEAD -fomit-frame-pointer -funroll-loops -finline-functions -Wall -W -Winline -DFLaC__INLINE=__inline__"
+               OUR_CFLAGS_HEAD="$OUR_CFLAGS_HEAD -O3 -fomit-frame-pointer -funroll-loops -finline-functions -Wall -W -Winline -DFLaC__INLINE=__inline__"
        fi
 fi
 CFLAGS="$OUR_CFLAGS_HEAD $CFLAGS"