Linux, libtool, and -lpthread

Russ Allbery rra at debian.org
Wed Feb 1 21:59:59 UTC 2012


"Cantor, Scott" <cantor.2 at osu.edu> writes:

>> 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.

> I didn't pick up on that subtlety, is there a specific note or comment
> that mentions that?

No, not directly.  I'm doing a lot of reading between the lines of the
response from the GCC maintainers, and I could well be wrong.

>> 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.

> I would think it would break most C++ builds anyway...

Well, Libtool adds back in all the -nostdlib stuff including the
appropriate gcc library (that part of the Debian bug no longer seems to be
a problem), handles all the crt0 setup, etc.  Just not -lpthread.

-- 
Russ Allbery (rra at debian.org)               <http://www.eyrie.org/~eagle/>



More information about the Pkg-shibboleth-devel mailing list