Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Dec 2025 00:47:33 +0000
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 7e356823ac3a - stable/14 - bsd.lib.mk: document INTERNALLIB and PRIVATELIB
Message-ID:  <692ce5a5.c9ad.231e6b27@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help

The branch stable/14 has been updated by kib:

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

commit 7e356823ac3aa648ddb42703b6a7254472d4bb81
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-11-27 16:41:29 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-12-01 00:47:08 +0000

    bsd.lib.mk: document INTERNALLIB and PRIVATELIB
    
    (cherry picked from commit e60861eb41ca9d141a0d967db3ecbe2b2909c300)
---
 share/mk/bsd.lib.mk | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk
index f2ed34b11edc..17a5ac969860 100644
--- a/share/mk/bsd.lib.mk
+++ b/share/mk/bsd.lib.mk
@@ -1,5 +1,19 @@
 #	from: @(#)bsd.lib.mk	5.26 (Berkeley) 5/2/91
 #
+# If INTERNALLIB is defined, we build lib<name>.a and lib<name>_pie.a,
+# i.e. only static archives without dso, in both non-PIE and PIE variants,
+# suitable for static linking into binaries.
+# INTERNALLIB library headers are not installed.  A component that uses
+# the library should add explicit -I$(LIB<name>DIR) to CFLAGS.
+#
+# If PRIVATELIB is defined, we build and install both libprivate<name>.a
+# and libprivate<name>.so, so the library can be linked dynamically, but
+# cannot be picked up by third-party configure scripts.
+# PRIVATELIB library headers are installed into include/private/<name>.
+#
+# If neither of control variables are defined, we install headers into
+# include/, and both non-pic static and shared libraries under the defined
+# name.
 
 .include <bsd.init.mk>
 .include <bsd.compiler.mk>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?692ce5a5.c9ad.231e6b27>