Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/share/mk Add support for compiler specific warning flags with



details:   https://anonhg.NetBSD.org/src/rev/cd090d3bad06
branches:  trunk
changeset: 765402:cd090d3bad06
user:      joerg <joerg%NetBSD.org@localhost>
date:      Wed May 25 15:01:08 2011 +0000

description:
Add support for compiler specific warning flags with
CWARNFLAGS.${COMPILER}

diffstat:

 share/mk/bsd.sys.mk |  4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diffs (18 lines):

diff -r ccbf23774e52 -r cd090d3bad06 share/mk/bsd.sys.mk
--- a/share/mk/bsd.sys.mk       Wed May 25 14:41:46 2011 +0000
+++ b/share/mk/bsd.sys.mk       Wed May 25 15:01:08 2011 +0000
@@ -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 @@
 .endif
 .endif
 
+CWARNFLAGS+=   ${CWARNFLAGS.${ACTIVE_CC}}
+
 CPPFLAGS+=     ${AUDIT:D-D__AUDIT__}
 CFLAGS+=       ${CWARNFLAGS} ${NOGCCERROR:D:U-Werror}
 LINTFLAGS+=    ${DESTDIR:D-d ${DESTDIR}/usr/include}



Home | Main Index | Thread Index | Old Index