From nobody Thu Nov 27 19:53:26 2025 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4dHRtt75hZz6J0WS for ; Thu, 27 Nov 2025 19:53:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R12" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dHRtt6RQgz3TbM for ; Thu, 27 Nov 2025 19:53:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1764273206; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=26N5/z6Z5Xlc84YKGYnPzkfCyPBw87sqzR2qGpR99NM=; b=rGbsYaU5xq4mW02KUcMq/v8EuigxA9EXSME6aQcZMicDHeiSYp5xRHZpM8ZyRvsqrTah1R ayWSDrevezM54vWZS29sSyu9UkupHb8nzSSk5mrcb+g8iRC3C+eHL03oXNGii1nS+rgzzs wUBOp70giO13ksskZfHms4N8AIGtYKGbZimOcPe1gesNiJBjCGhuvnDC1xyqCuyhB+o1OM zFlsfJEO593XHy55LHfcqMDMkrOpMw8naFfW5NE5VoS1wf+eROxidkHgzO/bZYGl7lr5P5 GakVEYVqb7yw+sBsJxvE0QoK1s42WSDI3P236d4LOUS53enSHSdgXGh6G8mBKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1764273206; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=26N5/z6Z5Xlc84YKGYnPzkfCyPBw87sqzR2qGpR99NM=; b=oMexJLVQnGK4LLVHUMUgBYUk5gvlmFE/lYlf9PGOQIe+9xWxhrKEqb+YM+clyMPs3bo4QX M7w0+qk61QWHIcjebHtlf5y2iyj9VQhl+tUtsUo3e1DtNdTRejTiOQQ7VB196cNvvfX0LQ UmwF2byFcCh19Xsq5/M9oFuNmFu+y+O7L/HMHYfc3cVqTt5EaqWiqOxDOPOF6lGrSK1MUG bpV2FEtn3FIT3ViKp/ZrMTeYqjBjK9EIOAKNXAhfJJToM02Y7MZ3O9aRPhnb828uDqlFsn rMpQDOhj2yAWrdDouU8yVFwZafeNRiD2NmjGswm7YkJmOx3A3is1xW3wuRfXCQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1764273206; a=rsa-sha256; cv=none; b=issilxeW2v6nFKq/OZ9Ym4Zk+hi8opTn0Zqdfk7g1/XQyPYhdIe2oDv+0JzmQhrLEouKgd nrcNElrbBtK/Ar0KAiScIRulQzzSH9Zj4aTgBbH6Kp5ASMZCs2lyyVEc4DIj3wqCf+7sSv UqruWD2c2Y4/dEVWoOhrxPEEFcHbvofkiyXOElf12R7LzgQjT/CoWUVcCR3IBneqYQqEIz jx+O7KW2Qv0iwiQQnRd4aE+kgHyLxpPbU1+zi0btzn/pq928Aw6rd9dgW8iYV5fP5vlZ+f RuXp1XHTWYAQNkEXQSGbGtblKv1vgrzSmkaSusF+mjyruvE4fOtAbvpPqEuH+A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4dHRtt5mW7zVrX for ; Thu, 27 Nov 2025 19:53:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 27c06 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 27 Nov 2025 19:53:26 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Konstantin Belousov Subject: git: e60861eb41ca - main - bsd.lib.mk: document INTERNALLIB and PRIVATELIB List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kib X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e60861eb41ca9d141a0d967db3ecbe2b2909c300 Auto-Submitted: auto-generated Date: Thu, 27 Nov 2025 19:53:26 +0000 Message-Id: <6928ac36.27c06.6b843965@gitrepo.freebsd.org> The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=e60861eb41ca9d141a0d967db3ecbe2b2909c300 commit e60861eb41ca9d141a0d967db3ecbe2b2909c300 Author: Konstantin Belousov AuthorDate: 2025-11-27 16:41:29 +0000 Commit: Konstantin Belousov CommitDate: 2025-11-27 19:53:19 +0000 bsd.lib.mk: document INTERNALLIB and PRIVATELIB Reviewed by: des, dim, emaste Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D53948 --- share/mk/bsd.lib.mk | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/share/mk/bsd.lib.mk b/share/mk/bsd.lib.mk index 159957b6300b..e3b3d760ff28 100644 --- a/share/mk/bsd.lib.mk +++ b/share/mk/bsd.lib.mk @@ -1,3 +1,18 @@ +# If INTERNALLIB is defined, we build lib.a and lib_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$(LIBDIR) to CFLAGS. +# +# If PRIVATELIB is defined, we build and install both libprivate.a +# and libprivate.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/. +# +# 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 .include .include