From owner-freebsd-current@FreeBSD.ORG Wed Jun 13 06:48:22 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6090716A46B for ; Wed, 13 Jun 2007 06:48:22 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from smtp5-g19.free.fr (smtp5-g19.free.fr [212.27.42.35]) by mx1.freebsd.org (Postfix) with ESMTP id 27F1B13C44C for ; Wed, 13 Jun 2007 06:48:21 +0000 (UTC) (envelope-from tataz@tataz.chchile.org) Received: from tatooine.tataz.chchile.org (tataz.chchile.org [82.233.239.98]) by smtp5-g19.free.fr (Postfix) with ESMTP id DC40244939; Wed, 13 Jun 2007 08:48:20 +0200 (CEST) Received: from obiwan.tataz.chchile.org (unknown [192.168.1.25]) by tatooine.tataz.chchile.org (Postfix) with ESMTP id 8DBC49C2AB; Wed, 13 Jun 2007 06:48:06 +0000 (UTC) Received: by obiwan.tataz.chchile.org (Postfix, from userid 1000) id 66DCF405B; Wed, 13 Jun 2007 08:48:06 +0200 (CEST) Date: Wed, 13 Jun 2007 08:48:06 +0200 From: Jeremie Le Hen To: Vladimir Kushnir Message-ID: <20070613064806.GB39533@obiwan.tataz.chchile.org> References: <20070602121928.G90169@kushnir1.kiev.ua> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070602121928.G90169@kushnir1.kiev.ua> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: freebsd-current@freebsd.org Subject: Re: "-pthread" == "-lpthread" for shared libs in -CURRENT 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: Wed, 13 Jun 2007 06:48:22 -0000 Hi, On Sat, Jun 02, 2007 at 12:50:58PM +0300, Vladimir Kushnir wrote: > > From old gcc specs: > > *lib: > %{!shared: > %{!pg: %{pthread:-lpthread} -lc} > %{pg: %{pthread:-lpthread_p} -lc_p} > } > > Now: > > *lib: > %{!shared: > %{!pg: %{pthread:-lpthread} -lc} > %{pg: %{pthread:-lpthread_p} -lc_p} > } > %{shared: %{pthread:-lpthread} -lc} > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Is this behaviour intended? I take advantage of this thread to ask something I've always wanted to understand but never have an explanation. What prevented to link shared libraries against libc with the old GCC? Thank you. Best regards, -- Jeremie Le Hen < jeremie at le-hen dot org >< ttz at chchile dot org >