URL: <https://savannah.gnu.org/support/?111406>
Summary: overlinking dependency_libs when linking against a
libtool library
Group: GNU Libtool
Submitter: None
Submitted: Wed 06 May 2026 09:20:33 PM UTC
Category: None
Priority: 5 - Normal
Severity: 4 - Important
Status: None
Privacy: Public
Assigned to: None
Originator Email: [email protected]
Open/Closed: Open
Discussion Lock: Unlocked
Operating System: *BSD
_______________________________________________________
Follow-up Comments:
-------------------------------------------------------
Date: Wed 06 May 2026 09:20:33 PM UTC By: Anonymous
Hi,
On NetBSD, linking a shared lib A with a libtool shared library B always adds
B's dependency to the dependencies of A. This is wrong on ELF systems.
This is fixed with the attached patch. It seems to me that the moved bit of
code in the patch was initially misplaced, as it always adds the contents of
'dependency_libs' to 'deplibs' no matter what, and in the context of the
'conv' pass that is supposed to only consider convenience libraries.
Note that this corresponds to a Debian patch that also fixes this for Linux,
where the problem therefore does not appear.
_______________________________________________________
File Attachments:
Name: libtool-deplibs.patch Size: 1.1KiB
<https://file.savannah.gnu.org/file/libtool-deplibs.patch?file_id=58561>
AGPL NOTICE
These attachments are served by Savane. You can download the corresponding
source code of Savane at
https://savannah.gnu.org/source/savane-c36938be85ff6c1b727bc7dd7fd30e48f9142870.tar.gz
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/support/?111406>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
