svn commit: r291619 - head/share/mk

Bryan Drewery bdrewery at FreeBSD.org
Tue Dec 1 22:19:18 UTC 2015


Author: bdrewery
Date: Tue Dec  1 22:19:17 2015
New Revision: 291619
URL: https://svnweb.freebsd.org/changeset/base/291619

Log:
  Define a LIB*SRCDIR for all known _LIBRARIES.
  
  This is a follow-up to r291327 which added a LIB*DIR for all known
  _LIBRARIES.
  
  Sponsored by:	EMC / Isilon Storage Division

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

Modified: head/share/mk/bsd.libnames.mk
==============================================================================
--- head/share/mk/bsd.libnames.mk	Tue Dec  1 22:04:59 2015	(r291618)
+++ head/share/mk/bsd.libnames.mk	Tue Dec  1 22:19:17 2015	(r291619)
@@ -152,3 +152,11 @@ LDADD:=	${LDADD:N-lpthread} -lpthread
 LDADD:=	${LDADD:N-lc} -lc
 .endif
 .endif
+
+# Only do this for src builds.
+.if defined(SRCTOP)
+# Derive LIB*SRCDIR from LIB*DIR
+.for lib in ${_LIBRARIES}
+LIB${lib:tu}SRCDIR?=	${SRCTOP}/${LIB${lib:tu}DIR:S,^${OBJTOP}/,,}
+.endfor
+.endif


More information about the svn-src-head mailing list