aboutsummaryrefslogtreecommitdiff
path: root/share/mk
diff options
context:
space:
mode:
authorDavid Schultz <das@FreeBSD.org>2011-10-10 15:39:29 +0000
committerDavid Schultz <das@FreeBSD.org>2011-10-10 15:39:29 +0000
commit085f20ec399207de913cfbff4cc8774a82fc808d (patch)
treed2c6be1b2c23e2e4c2da89940496f14ab6dc245e /share/mk
parent8be736b2b35463e936da43fde21633072fb40980 (diff)
downloadsrc-085f20ec399207de913cfbff4cc8774a82fc808d.tar.gz
src-085f20ec399207de913cfbff4cc8774a82fc808d.zip
Pass -std= flags in CFLAGS to mkdep. Without this, preprocessor tests
for particular compiler features might be evaluated differently by mkdep than they would be by cc.
Notes
Notes: svn path=/head/; revision=226216
Diffstat (limited to 'share/mk')
-rw-r--r--share/mk/bsd.dep.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk
index c452528da947..639e20556d4f 100644
--- a/share/mk/bsd.dep.mk
+++ b/share/mk/bsd.dep.mk
@@ -125,8 +125,8 @@ depend: beforedepend ${DEPENDFILE} afterdepend
# Different types of sources are compiled with slightly different flags.
# Split up the sources, and filter out headers and non-applicable flags.
-MKDEP_CFLAGS= ${CFLAGS:M-nostdinc*} ${CFLAGS:M-[BIDU]*}
-MKDEP_CXXFLAGS= ${CXXFLAGS:M-nostdinc*} ${CXXFLAGS:M-[BIDU]*}
+MKDEP_CFLAGS= ${CFLAGS:M-nostdinc*} ${CFLAGS:M-[BIDU]*} ${CFLAGS:M-std=*}
+MKDEP_CXXFLAGS= ${CXXFLAGS:M-nostdinc*} ${CXXFLAGS:M-[BIDU]*} ${CFLAGS:M-std=*}
DPSRCS+= ${SRCS}
${DEPENDFILE}: ${DPSRCS}