mirror of
https://github.com/rsmarples/dhcpcd.git
synced 2024-11-24 10:35:03 +08:00
Default to -O2.
This commit is contained in:
parent
40494f78e8
commit
8109d29524
4
mk/cc.mk
4
mk/cc.mk
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user