make -O2 the default for release builds, but -O3 for gcc
This commit is contained in:
parent
ed3a82e592
commit
1e70455a92
@ -358,9 +358,9 @@ OUR_CFLAGS_HEAD='-I$(top_builddir) -I$(srcdir)/include -I$(top_srcdir)/include'
|
|||||||
if test x$debug = xtrue; then
|
if test x$debug = xtrue; then
|
||||||
OUR_CFLAGS_HEAD="$OUR_CFLAGS_HEAD -g -O0 -DDEBUG"
|
OUR_CFLAGS_HEAD="$OUR_CFLAGS_HEAD -g -O0 -DDEBUG"
|
||||||
else
|
else
|
||||||
OUR_CFLAGS_HEAD="$OUR_CFLAGS_HEAD -O3 -DNDEBUG"
|
OUR_CFLAGS_HEAD="$OUR_CFLAGS_HEAD -O2 -DNDEBUG"
|
||||||
if test x$GCC = xyes; then
|
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
|
||||||
fi
|
fi
|
||||||
CFLAGS="$OUR_CFLAGS_HEAD $CFLAGS"
|
CFLAGS="$OUR_CFLAGS_HEAD $CFLAGS"
|
||||||
|
Loading…
Reference in New Issue
Block a user