🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.bugs
Article #65

[Bug 299312] Port `SHLIB_LINKS` from contrib/bmake/lib.mk to share/mk/bsd.lib.mk

#65
From: bugzilla-noreply
Date: Sun, 11 Oct 2026 16:32
43 lines
3459 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=299312

            Bug ID: 299312
           Summary: Port `SHLIB_LINKS` from contrib/bmake/lib.mk to
                    share/mk/bsd.lib.mk
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: conf
          Assignee: bugs@FreeBSD.org
          Reporter: ngie@FreeBSD.org

In the trivial case bsd.lib.mk creates a link from `libfoo.so.1` to
`libfoo.so`. This works great for simple libraries, but for more complex
libraries where the major version means something (`libcrypto.so.35`), bumping
the major number makes versioning less useful.

bmake's lib.mk features `SHLIB_LINKS` which handles this case and also allows
for additional structured linking. I think it's worth porting this feature over
to bsd.lib.mk to allow for the scenario of `libcrypto.so.35` ->
`libcrypto.so.35.1`.

This might require some changes to linker args in order to make this actually
work as this functionality only seems to apply to Darwin (macOS). Some
investigation will need to be done beforehand to confirm whether or not
compatible linker support exists with the toolchains available to FreeBSD.

-- 
You are receiving this mail because:
You are the assignee for the bug.

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <bug-299312-227@https.bugs.freebsd.org/bugzilla/>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: bugzilla-noreply@freebsd.org
Newsgroups: muc.lists.freebsd.bugs
Subject: [Bug 299312] Port `SHLIB_LINKS` from contrib/bmake/lib.mk to
 share/mk/bsd.lib.mk
Date: Sun, 11 Oct 2026 16:32:38 +0000
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-bugs@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <bug-299312-227@https.bugs.freebsd.org/bugzilla/>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="61405"; mail-complaints-to="news-admin@muc.de"
X-Original-To: bugs@mlmmj.nyi.freebsd.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1791736359;
	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=NKI/XuEDWCMy51ZAGixjZFC4PtQG9JhFLFd0shs5Jgk=;
	b=AKjPpMTx6JSv/4b9D/FE/XfGf5ntcFW2v/UhqT4N2wKx3EiC7HpSbxbee8wNKHeldOd5WZ
	dhI2FDu5HVnxkCOns4Qco4C/iZKj5ErGHyrp02vMNj2Q0SWdGjg4SFNLyBCPoh8DSOfucm
	/Ga2T+UrKbxCUUNgn2qYNghhJJvcy4CaensXnOm4fdFUXleREF7JmblNIM6V0dgE3lEtkG
	G58urLV8XzwUvAmjQMmmRh+AN4ReoBUFc1OE4HkjqRlTSiHB7CMzC5gy0gy+qi50maUYhv
	YOGYKcvME7KMbodGv2aAk/5vTTjXLf2ZTgNFK68KWHFm+un6ik9WZ/V7PO8x+g==
X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f
Auto-Submitted: auto-generated
Precedence: list
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes