diff options
author | das <das@FreeBSD.org> | 2011-10-10 15:39:29 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2011-10-10 15:39:29 +0000 |
commit | 9261843d83b187e1ad600904440706fe9ca02986 (patch) | |
tree | d2c6be1b2c23e2e4c2da89940496f14ab6dc245e /share | |
parent | 74fc1089439ecb555e0a07e6fbd09e1da1a0e92e (diff) | |
download | FreeBSD-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')
-rw-r--r-- | share/mk/bsd.dep.mk | 4 |
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} |