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
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to