Not providing static libraries (libkse/libpthread)

The Anarcat anarcat at anarcat.ath.cx
Wed Mar 26 21:48:24 PST 2003


On mer mar 26, 2003 at 01:51:07 -0600, Dan Nelson wrote:
> In the last episode (Mar 26), Daniel Eischen said:
> > On Wed, 26 Mar 2003, Marcel Moolenaar wrote:
> > > For example, the access sequences generated by compilers for
> > > variables that have the __thread attribute do really suck for when
> > > code is to be generated for dynamic linking. The access sequences
> > > in the static case are superior. The performance gain is
> > > significant if one can build a complete multi-threaded application.
> > 
> > Solaris and IRIX don't seem to provide static thread libraries.  Does
> > anyone know if Linux does?
> 
> Debian provides static versions:
> -rw-r--r--    1 root     root   81959 Feb 25 07:46 /lib/libpthread-0.10.so
> -rw-r--r--    1 root     root   97286 Feb 25 07:47 /usr/lib/libpthread.a

Note that libpthread.a is provided by the libc6-dev package and does
not need to be installed by default, IIRC.

anarcat at xtanbul[/usr/lib]% dpkg-query -S libpthread.a 
libc6-dev: /usr/lib/libpthread.a
anarcat at xtanbul[/usr/lib]% 

Also, this package is not required by most applications. Only when you
install build tools, does the static lib gets installed.

I like the idea of splitting a port's library between static and
shared packages. Most end-users that don't need to compile anything
don't need static libraries. -dev packages also contain the header
files. I'd like to see the same in our ports system.

A.


More information about the freebsd-arch mailing list