git: d7f944a04605 - main - Allow downstream projects to easily add private and internal libs

From: Eric van Gyzen <vangyzen_at_FreeBSD.org>
Date: Fri, 14 Jan 2022 22:19:27 UTC
The branch main has been updated by vangyzen:

URL: https://cgit.FreeBSD.org/src/commit/?id=d7f944a0460531cfb3ec9ae7d4bfd9dc29481ab8

commit d7f944a0460531cfb3ec9ae7d4bfd9dc29481ab8
Author:     Eric van Gyzen <vangyzen@FreeBSD.org>
AuthorDate: 2022-01-14 14:12:57 +0000
Commit:     Eric van Gyzen <vangyzen@FreeBSD.org>
CommitDate: 2022-01-14 16:19:19 +0000

    Allow downstream projects to easily add private and internal libs
    
    Allow projects based on the FreeBSD tree to append to _PRIVATELIBS
    and _INTERNALLIBS by simply maintaining their own lists of
    LOCAL_PRIVATELIBS and LOCAL_INTERNALLIBS, respectively.
    
    Reviewed by:    bdrewery
    MFC after:      1 week
    Sponsored by:   Dell EMC Isilon
    Differential Revision: https://reviews.freebsd.org/D33901
---
 share/mk/src.libnames.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/share/mk/src.libnames.mk b/share/mk/src.libnames.mk
index cf6c41887791..c37b56da18b4 100644
--- a/share/mk/src.libnames.mk
+++ b/share/mk/src.libnames.mk
@@ -35,6 +35,10 @@ _PRIVATELIBS=	\
 		unbound \
 		zstd
 
+# Let projects based on FreeBSD append to _PRIVATELIBS
+# by maintaining their own LOCAL_PRIVATELIBS list.
+_PRIVATELIBS+=	${LOCAL_PRIVATELIBS}
+
 _INTERNALLIBS=	\
 		amu \
 		bsnmptools \
@@ -79,6 +83,10 @@ _INTERNALLIBS=	\
 		wpautils \
 		wpawps
 
+# Let projects based on FreeBSD append to _INTERNALLIBS
+# by maintaining their own LOCAL_INTERNALLIBS list.
+_INTERNALLIBS+=	${LOCAL_INTERNALLIBS}
+
 _LIBRARIES=	\
 		${_PRIVATELIBS} \
 		${_INTERNALLIBS} \