From owner-freebsd-current@FreeBSD.ORG Sat Feb 11 15:26:28 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 161DC16A422; Sat, 11 Feb 2006 15:26:28 +0000 (GMT) (envelope-from kan@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB08A43D45; Sat, 11 Feb 2006 15:26:27 +0000 (GMT) (envelope-from kan@FreeBSD.org) Received: from freefall.freebsd.org (kan@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k1BFQRKb089105; Sat, 11 Feb 2006 15:26:27 GMT (envelope-from kan@freefall.freebsd.org) Received: (from kan@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k1BFQRg5089104; Sat, 11 Feb 2006 15:26:27 GMT (envelope-from kan) Date: Sat, 11 Feb 2006 15:26:27 +0000 From: Alexander Kabaev To: Daniel Eischen Message-ID: <20060211152627.GA88895@freefall.freebsd.org> References: <20060211071552.GA99012@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Cc: freebsd-current@freebsd.org, Steve Kargl Subject: Re: [jakub@redhat.com:Linking against libpthread via -pthread? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 11 Feb 2006 15:26:28 -0000 On Sat, Feb 11, 2006 at 09:39:08AM -0500, Daniel Eischen wrote: > On Fri, 10 Feb 2006, Steve Kargl wrote: > > > On Sat, Feb 11, 2006 at 01:21:48AM -0500, Daniel Eischen wrote: > > > On Fri, 10 Feb 2006, Alexander Kabaev wrote: > > > > > > > > No. The change to link in libc by default and libpthread with -pthread > > > > are inthe works and will be committed shortly. There is not way around > > > > this if we want working versioned libc and libpthread in our system. > > > > > > Why is that? We really don't want -pthread to build in libpthread > > > dependency when linking shared libraries. > > > > Uh, well, you do if you want to use GCC 4.2.X > > Why? If one _really_ needs a shared library linked to libpthread, > -lpthread will always work. > > -- > DE > Just think for a moment how exactly will your shared library depend on a specific symbol version in C or thread libraries if no dependencies on libc.so.6 and libpthread.so.2 were recorded in the first place? When no -lc or -lpthreed were seen by ld at all? The symbol is defined by a name, version and library's SONAME. -- Alexander Kabaev