Bug 8563 - libtool links to libstdc++ despite -static-libstdc++
Summary: libtool links to libstdc++ despite -static-libstdc++
Status: RESOLVED FIXED
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Build system (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: 4.19.0
Assignee: Pierre Ossman
URL:
Keywords: prosaic
Depends on:
Blocks:
 
Reported: 2025-04-01 15:40 CEST by Pierre Ossman
Modified: 2025-04-02 15:40 CEST (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2025-04-01 15:40:06 CEST
libtool has a bug/misfeature where it will override the -static-libstdc++ argument and still link dynamically to libstdc++. This is bad since we cannot guarantee that the libstdc++ in cenbuild will be compatible with what users have on their system.

Issue was reported here:

https://savannah.gnu.org/support/index.php?111184

We did a workaround in r41525 for bug 8485.
Comment 1 Pierre Ossman cendio 2025-04-01 15:40:57 CEST
Upstream has now committed a fix that will be included in the next libtool version:

https://git.savannah.gnu.org/cgit/libtool.git/commit/?h=development&id=a390f27ff13fd8bca3f43ab4721d8dc56c476acb

We can remove our workaround and specify --enable-cxx-stdlib to configure instead after that fix is in place.
Comment 2 Pierre Ossman cendio 2025-04-01 16:00:52 CEST
Let's try to backport this fix and get this all behind us.
Comment 6 Pierre Ossman cendio 2025-04-01 16:37:48 CEST
Fixed, and we still have no runtime dependency on libstdc++.

Note You need to log in before you can comment on or make changes to this bug.