Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Dec 2015 03:00:11 +0000 (UTC)
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r291554 - head/share/mk
Message-ID:  <201512010300.tB130B8h066406@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bdrewery
Date: Tue Dec  1 03:00:10 2015
New Revision: 291554
URL: https://svnweb.freebsd.org/changeset/base/291554

Log:
  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

Modified:
  head/share/mk/bsd.dep.mk

Modified: head/share/mk/bsd.dep.mk
==============================================================================
--- head/share/mk/bsd.dep.mk	Tue Dec  1 02:48:42 2015	(r291553)
+++ head/share/mk/bsd.dep.mk	Tue Dec  1 03:00:10 2015	(r291554)
@@ -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}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201512010300.tB130B8h066406>