Default to -O2.

This commit is contained in:
Roy Marples 2008-11-05 15:59:36 +00:00
parent 40494f78e8
commit 8109d29524

View File

@ -1,7 +1,7 @@
# Copyright 2008 Roy Marples <roy@marples.name>
# Setup some good default CFLAGS
CFLAGS?= -Os
CFLAGS?= -O2
# Default to using the C99 standard
CSTD?= c99
@ -9,7 +9,7 @@ _CSTD_SH= if test -n "${CSTD}"; then echo "-std=${CSTD}"; else echo ""; fi
_CSTD!= ${_CSTD_SH}
CFLAGS+= ${_CSTD}$(shell ${_CSTD_SH})
# Try and use some good cc flags if we're building from git
# Try and use some good cc flags if we're building from svn
# We don't use -pedantic as it will warn about our perfectly valid
# use of %m in our logger.
_CCFLAGS= -Wall -Wextra -Wimplicit -Wshadow -Wformat=2 \