summaryrefslogtreecommitdiffstats
path: root/share/mk/bsd.dep.mk
diff options
context:
space:
mode:
authordas <das@FreeBSD.org>2011-10-10 15:39:29 +0000
committerdas <das@FreeBSD.org>2011-10-10 15:39:29 +0000
commit9261843d83b187e1ad600904440706fe9ca02986 (patch)
treed2c6be1b2c23e2e4c2da89940496f14ab6dc245e /share/mk/bsd.dep.mk
parent74fc1089439ecb555e0a07e6fbd09e1da1a0e92e (diff)
downloadFreeBSD-src-9261843d83b187e1ad600904440706fe9ca02986.zip
FreeBSD-src-9261843d83b187e1ad600904440706fe9ca02986.tar.gz
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.
Diffstat (limited to 'share/mk/bsd.dep.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 c452528..639e205 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}
OpenPOWER on IntegriCloud