From owner-freebsd-arch@FreeBSD.ORG Wed Mar 26 13:48:23 2003 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 940E537B404 for ; Wed, 26 Mar 2003 13:48:23 -0800 (PST) Received: from mail1.qc.uunet.ca (mail1.qc.uunet.ca [198.168.54.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id B771943F3F for ; Wed, 26 Mar 2003 13:48:22 -0800 (PST) (envelope-from anarcat@espresso-com.com) Received: from xtanbul.studio.espresso-com.com ([216.94.147.57]) by mail1.qc.uunet.ca (8.12.8/8.12.8) with ESMTP id h2QLm9GS019177; Wed, 26 Mar 2003 16:48:10 -0500 Received: from anarcat by xtanbul.studio.espresso-com.com with local (Exim 3.36 #1 (Debian)) id 18yIkj-0001cu-00; Wed, 26 Mar 2003 16:48:09 -0500 Date: Wed, 26 Mar 2003 16:48:09 -0500 From: The Anarcat To: Dan Nelson Message-ID: <20030326214809.GE488@xtanbul> References: <20030326193524.GA11320@dhcp01.pn.xcllnt.net> <20030326195107.GB31787@dan.emsphone.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030326195107.GB31787@dan.emsphone.com> User-Agent: Mutt/1.5.3i Sender: The Anarcat X-Spam-Status: No, hits=-32.5 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) cc: arch@freebsd.org cc: kse@elischer.org cc: Daniel Eischen cc: Marcel Moolenaar Subject: Re: Not providing static libraries (libkse/libpthread) X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Mar 2003 21:48:24 -0000 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.