Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Nov 2015 00:45:36 +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: r291046 - head/share/mk
Message-ID:  <201511190045.tAJ0jaPd028352@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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]}



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