From: Roy Marples Date: Wed, 5 Nov 2008 15:59:36 +0000 (+0000) Subject: Default to -O2. X-Git-Tag: v5.0.0~190 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8109d295243d1299029b1a2b7fda0dc8875bc09d;p=thirdparty%2Fdhcpcd.git Default to -O2. --- diff --git a/mk/cc.mk b/mk/cc.mk index 63f396cb..71cb4094 100644 --- a/mk/cc.mk +++ b/mk/cc.mk @@ -1,7 +1,7 @@ # Copyright 2008 Roy Marples # 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 \