Date: Wed, 26 Mar 2003 16:48:09 -0500 From: The Anarcat <anarcat@anarcat.ath.cx> To: Dan Nelson <dnelson@allantgroup.com> Cc: Marcel Moolenaar <marcel@xcllnt.net> Subject: Re: Not providing static libraries (libkse/libpthread) Message-ID: <20030326214809.GE488@xtanbul> In-Reply-To: <20030326195107.GB31787@dan.emsphone.com> References: <20030326193524.GA11320@dhcp01.pn.xcllnt.net> <Pine.GSO.4.10.10303261441100.9412-100000@pcnet1.pcnet.com> <20030326195107.GB31787@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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@xtanbul[/usr/lib]% dpkg-query -S libpthread.a libc6-dev: /usr/lib/libpthread.a anarcat@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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030326214809.GE488>