svn commit: r291046 - head/share/mk

Bryan Drewery bdrewery at FreeBSD.org
Thu Nov 19 00:45:38 UTC 2015


Author: bdrewery
Date: Thu Nov 19 00:45:36 2015
New Revision: 291046
URL: https://svnweb.freebsd.org/changeset/base/291046

Log:
  FAST_DEPEND: Similar to r290629, do always depend on headers if 'make depend'
  has not ran yet.
  
  This fixes building objects directly, or skipping 'make depend', not generating
  required headers first.  This case did work without FAST_DEPEND so there's no
  reason it should not work here as well.
  
  An example of this can be seen building in gnu/usr.bin/binutils/libbfd
  without running 'make depend' first to generate config.h.
  
  Sponsored by:	EMC / Isilon Storage Division
  MFC after:	3 weeks
  X-MFC-With:	r290433

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

Modified: head/share/mk/bsd.lib.mk
==============================================================================
--- head/share/mk/bsd.lib.mk	Thu Nov 19 00:27:26 2015	(r291045)
+++ head/share/mk/bsd.lib.mk	Thu Nov 19 00:45:36 2015	(r291046)
@@ -419,7 +419,7 @@ lint: ${SRCS:M*.c}
 
 .if ${MK_FAST_DEPEND} == "yes" || !exists(${.OBJDIR}/${DEPENDFILE})
 .if defined(LIB) && !empty(LIB)
-.if ${MK_FAST_DEPEND} == "no"
+.if !exists(${.OBJDIR}/${DEPENDFILE})
 ${OBJS} ${STATICOBJS} ${POBJS}: ${SRCS:M*.h}
 .endif
 .for _S in ${SRCS:N*.[hly]}


More information about the svn-src-head mailing list