Linux, libtool, and -lpthread
rra at debian.org
Wed Feb 1 21:36:05 UTC 2012
"Cantor, Scott" <cantor.2 at osu.edu> writes:
>> This appears to still be unresolved in Libtool 2.4.2. This is normally
>> masked because Xerces-C forces inclusion of -lpthread in its *.la file,
>> but Debian has dropped the *.la file for Xerces-C (because it adds
>> spurious dependencies on the ICU libraries), so we now see this problem
>> for xmltooling (and I'm expecting to see it for others).
> I suspect it's formally creatig incorrect builds anyway, since -pthread
> is not specifically only to address the library option, but also thread
> safe versions of various system calls and such.
Apparently all the rest of what -pthread does is still active, but
-nostdlib disables the addition of any libraries caused by other flags.
At least, that's my understanding; I could be missing some subtlety.
Ideally, the Libtool bug would be fixed. Apparently the -nostdlib thing
was to work around a different bug, but I'm a bit dubious the different
bug still exists after all these years.
If I have time, I'll go poke the Libtool maintainers.
Russ Allbery (rra at debian.org) <http://www.eyrie.org/~eagle/>
More information about the Pkg-shibboleth-devel