[lsb-discuss] why does lsbcc add -lpthread_nonshared to gcc

Wichmann, Mats D mats.d.wichmann at intel.com
Fri Jul 10 09:44:24 PDT 2009


LDN LSB Mailing List wrote:
> hi all:
>      i am learn lsbcc. why does lsbcc add -lpthread_nonshared to gcc.
> the lib of libpthread_nonshared.a is a static LGPL lib. does it need?


Yes.  If you look at an arbitrary Linux system, you'll see that
libc.so and libpthread.so - in other words, the link-time copies,
not the runtime copies which are named like libc.so.6 and libpthread.so.0 -
are actually linker scripts, the main part of which force the linking
of both the dynamic and statics parts of those libraries.

Since lsbcc doesn't link against the system copies, it must
synthesize this behavior.



More information about the lsb-discuss mailing list