Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Dec 2015 22:19:17 +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: r291619 - head/share/mk
Message-ID:  <201512012219.tB1MJH0i013216@repo.freebsd.org>

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



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