summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2015-12-01 03:00:10 +0000
committerbdrewery <bdrewery@FreeBSD.org>2015-12-01 03:00:10 +0000
commite0b53ae2d218d1e523c0752dc4e4fdd229b996e1 (patch)
tree7609f5d468223c2c521a7e7fca077f8bed7ee2a9 /share
parent101bd0f09362a175a5e1c15b146336485b1d0cee (diff)
downloadFreeBSD-src-e0b53ae2d218d1e523c0752dc4e4fdd229b996e1.zip
FreeBSD-src-e0b53ae2d218d1e523c0752dc4e4fdd229b996e1.tar.gz
FAST_DEPEND: Allow not using -MP by setting DEPEND_MP blank.
-MP creates empty targets for all dependency files, which can be useful when a dependency is deleted from the file system. This would otherwise cause an error for "don't know how to build FOO" since the .depend file is included with the dependency registered. This is mostly a workaround for the misc/dahdi-kmod port using '::' for one of its dependencies, while -MP uses just ':'. This results in an 'Inconsistent operator for' error. X-MFC-With: r290433 MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.dep.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/share/mk/bsd.dep.mk b/share/mk/bsd.dep.mk
index 2e5e486..30f2b8f 100644
--- a/share/mk/bsd.dep.mk
+++ b/share/mk/bsd.dep.mk
@@ -59,7 +59,8 @@ DEPENDFILE?= .depend
DEPENDFILES= ${DEPENDFILE}
.if ${MK_FAST_DEPEND} == "yes" && ${.MAKE.MODE:Unormal:Mmeta*} == ""
DEPENDFILES+= ${DEPENDFILE}.*
-DEPEND_CFLAGS+= -MD -MP -MF${DEPENDFILE}.${.TARGET}
+DEPEND_MP?= -MP
+DEPEND_CFLAGS+= -MD -MF${DEPENDFILE}.${.TARGET}
DEPEND_CFLAGS+= -MT${.TARGET}
CFLAGS+= ${DEPEND_CFLAGS}
DEPENDOBJS+= ${OBJS} ${POBJS} ${SOBJS}
OpenPOWER on IntegriCloud