bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

threadlib vs as-needed vs libtool


From: Michael Hudson-Doyle
Subject: threadlib vs as-needed vs libtool
Date: Wed, 1 Aug 2018 13:17:16 +1200

Hi,

I recently encountered the problem that the patch "threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled" was intended to fix. But unfortunately, the fix doesn't actually work because libtool is re-ordering the linker commands. In particular "$stuff -Wl,--push-state -Wl,--no-as-needed -lpthread -Wl,--pop-state" becomes "-Wl,--push-state -Wl,--no-as-needed -Wl,--pop-state $stuff -lpthread" which obviously doesn't achieve anything at all.

I googled a bit and found a 12 year old Debian bug complaining about this (https://bugs.debian.org/347650) but no indication that anything has changed in libtool in this area. Does anyone on this list have an idea for how to work around this?

Cheers,
mwh

reply via email to

[Prev in Thread] Current Thread [Next in Thread]