Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/mk when calling mkdep, pass any -std=* flags for C and...
details: https://anonhg.NetBSD.org/src/rev/492979b4d5a1
branches: trunk
changeset: 330729:492979b4d5a1
user: plunky <plunky%NetBSD.org@localhost>
date: Sat Jul 19 17:19:22 2014 +0000
description:
when calling mkdep, pass any -std=* flags for C and C++ source files
to ensure that any definitions this implies are set
diffstat:
share/mk/bsd.dep.mk | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r b1d752d72dab -r 492979b4d5a1 share/mk/bsd.dep.mk
--- a/share/mk/bsd.dep.mk Sat Jul 19 17:14:40 2014 +0000
+++ b/share/mk/bsd.dep.mk Sat Jul 19 17:19:22 2014 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.dep.mk,v 1.80 2013/12/05 22:49:33 matt Exp $
+# $NetBSD: bsd.dep.mk,v 1.81 2014/07/19 17:19:22 plunky Exp $
##### Basic targets
realdepend: beforedepend .depend afterdepend
@@ -61,7 +61,7 @@
.c.d:
${_MKTARGET_CREATE}
${MKDEP} -f ${.TARGET}.tmp ${_MKDEP_FILEFLAGS} -- ${MKDEPFLAGS} \
- ${CFLAGS:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*} \
+ ${CFLAGS:M-std=*} ${CFLAGS:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*} \
${CPPFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} \
${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} && \
mv ${.TARGET}.tmp ${.TARGET}
@@ -85,7 +85,7 @@
.C.d .cc.d .cpp.d .cxx.d:
${_MKTARGET_CREATE}
${MKDEPCXX} -f ${.TARGET}.tmp ${_MKDEP_FILEFLAGS} -- ${MKDEPFLAGS} \
- ${CXXFLAGS:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*} \
+ ${CXXFLAGS:M-std=*} ${CXXFLAGS:C/-([IDU])[ ]*/-\1/Wg:M-[IDU]*} \
${CPPFLAGS} ${COPTS.${.IMPSRC:T}} ${CPUFLAGS.${.IMPSRC:T}} \
${CPPFLAGS.${.IMPSRC:T}} ${.IMPSRC} && \
mv ${.TARGET}.tmp ${.TARGET}
Home |
Main Index |
Thread Index |
Old Index