Backout previous for now. We have to rethink dependency for MKPIC and LDSTATIC.
Pointed out by dogcow@.
This commit is contained in:
parent
a5d694a48c
commit
a91b6f6d11
@ -1,4 +1,4 @@
|
||||
# $NetBSD: bsd.sys.mk,v 1.160 2008/04/14 13:41:43 tsutsui Exp $
|
||||
# $NetBSD: bsd.sys.mk,v 1.161 2008/04/15 00:08:05 tsutsui Exp $
|
||||
#
|
||||
# Build definitions used for NetBSD source tree builds.
|
||||
|
||||
@ -17,12 +17,8 @@ CFLAGS+= -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith
|
||||
# we wanted, and now we don't get anymore.
|
||||
CFLAGS+= -Wno-sign-compare -Wno-traditional
|
||||
# Set linker warnings to be fatal
|
||||
# XXX no proper way to avoid "FOO is a patented algorithm" warnings
|
||||
# XXX on linking static libs
|
||||
.if (${MKPIC} != "no" && ${LDSTATIC} != "-static")
|
||||
LDFLAGS+= -Wl,--fatal-warnings
|
||||
.endif
|
||||
.endif
|
||||
.if ${WARNS} > 1
|
||||
CFLAGS+= -Wreturn-type -Wswitch -Wshadow
|
||||
.endif
|
||||
|
Loading…
Reference in New Issue
Block a user