Add support for compiler specific warning flags with

CWARNFLAGS.${COMPILER}
This commit is contained in:
joerg 2011-05-25 15:01:08 +00:00
parent b9972d39ce
commit 175c50ac7e
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
# $NetBSD: bsd.sys.mk,v 1.198 2011/05/23 14:32:05 joerg Exp $
# $NetBSD: bsd.sys.mk,v 1.199 2011/05/25 15:01:08 joerg Exp $
#
# Build definitions used for NetBSD source tree builds.
@ -59,6 +59,8 @@ CFLAGS+= -Wsign-compare
.endif
.endif
CWARNFLAGS+= ${CWARNFLAGS.${ACTIVE_CC}}
CPPFLAGS+= ${AUDIT:D-D__AUDIT__}
CFLAGS+= ${CWARNFLAGS} ${NOGCCERROR:D:U-Werror}
LINTFLAGS+= ${DESTDIR:D-d ${DESTDIR}/usr/include}