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

NPTL and static linking



I discovered with some surprise that the 2.6 kernel does not come with
an archive version
of the NPTL pthreads library (ie., no libpthread.a). So, while
dynamically linked applications will link against NPTL by default,
building a statically linked application will not only link to
LinuxThreads by default... that's your only option!

Does anyone know if this is an intentional decision on the part of the
glibc/nptl crew to refuse to support static linking of the pthreads
library (perhaps due to ongoing development)? If it is a debian
decision, apparently we're in good company. Some research turned up
the fact that only the Gentoo distribution comes with a static version
of NPTL.

I considered getting my own glibc source, and compiling it to obtain
the archive I desire, but on looking through the glibc documentation,
and having only a sketchy grasp of the way that glibc is tied to the
kernel itself, I decided against that course of action.

-bluejack

-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-:-



Reply to: