summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2016-01-19 23:28:18 +0000
committerbdrewery <bdrewery@FreeBSD.org>2016-01-19 23:28:18 +0000
commit4298849ab05ffb3fad1bbaf9c59bfa455c4b7565 (patch)
treeb18737d01cbbfa42e371172a63c591f637f7116c
parent106d9f52af6fa7a3473aca9b1f3d9f49b9860557 (diff)
downloadFreeBSD-src-4298849ab05ffb3fad1bbaf9c59bfa455c4b7565.zip
FreeBSD-src-4298849ab05ffb3fad1bbaf9c59bfa455c4b7565.tar.gz
FAST_DEPEND: Fix improperly depending all .So objects on all headers.
This was a regression in r290629, which was revealed partly in r294360. Once 'make depend' has ran it will generate all headers already. Thus even with FAST_DEPEND lacking proper dependencies before building, it will not have any missing headers. Once objects are compiled the depend files will be generated with proper dependencies. Sponsored by: EMC / Isilon Storage Division
-rw-r--r--share/mk/bsd.lib.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk
index 2e1796f..ad5b5b6 100644
--- a/share/mk/bsd.lib.mk
+++ b/share/mk/bsd.lib.mk
@@ -433,7 +433,9 @@ ${_S:R}.po: ${_S}
.endif
.if defined(SHLIB_NAME) || \
defined(INSTALL_PIC_ARCHIVE) && defined(LIB) && !empty(LIB)
+.if !exists(${.OBJDIR}/${DEPENDFILE})
${SOBJS}: ${SRCS:M*.h}
+.endif
.for _S in ${SRCS:N*.[hly]}
${_S:R}.So: ${_S}
.endfor
OpenPOWER on IntegriCloud