blob: 70cf333ecfabd6fe23b342d473a9806edda05d08 [file] [log] [blame] [raw]
Pass all CFLAGS and CXXFLAGS to mkdep(1) without filtering, to avoid passing
broken flags to C preprocessor later by mkdep(1).
diff -ru --exclude-from freebsd-src-diff-exclude-names /var/archive3/public/freebsd-releng-10.4-src/share/mk/bsd.dep.mk freebsd-10.4/share/mk/bsd.dep.mk
--- /var/archive3/public/freebsd-releng-10.4-src/share/mk/bsd.dep.mk 2017-09-29 08:20:20.000000000 +0800
+++ freebsd-10.4/share/mk/bsd.dep.mk 2020-01-25 23:52:57.774380000 +0800
@@ -165,13 +165,8 @@
_CFLAGS_INCLUDES= ${CFLAGS:Q:S/\\ /,/g:C/-include,/-include%/g:C/,/ /g:M-include*:C/%/ /g}
_CXXFLAGS_INCLUDES= ${CXXFLAGS:Q:S/\\ /,/g:C/-include,/-include%/g:C/,/ /g:M-include*:C/%/ /g}
-# 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]*} ${CFLAGS:M-std=*} \
- ${CFLAGS:M-ansi} ${_CFLAGS_INCLUDES}
-MKDEP_CXXFLAGS= ${CXXFLAGS:M-nostdinc*} ${CXXFLAGS:M-[BIDU]*} \
- ${CXXFLAGS:M-std=*} ${CXXFLAGS:M-ansi} ${CXXFLAGS:M-stdlib=*} \
- ${_CXXFLAGS_INCLUDES}
+MKDEP_CFLAGS= ${CFLAGS} ${_CFLAGS_INCLUDES}
+MKDEP_CXXFLAGS= ${CXXFLAGS} ${_CXXFLAGS_INCLUDES}
DPSRCS+= ${SRCS}
${DEPENDFILE}: ${DPSRCS}