From owner-freebsd-current@FreeBSD.ORG Sat Jun 2 13:00:13 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 96E9D16A41F for ; Sat, 2 Jun 2007 13:00:13 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.ntplx.net (mail.ntplx.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id 5DA7A13C45D for ; Sat, 2 Jun 2007 13:00:13 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.ntplx.net (8.14.1/8.14.1/NETPLEX) with ESMTP id l52D08LE007501; Sat, 2 Jun 2007 09:00:09 -0400 (EDT) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.ntplx.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-3.0 (mail.ntplx.net [204.213.176.10]); Sat, 02 Jun 2007 09:00:09 -0400 (EDT) Date: Sat, 2 Jun 2007 09:00:08 -0400 (EDT) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Vladimir Kushnir In-Reply-To: <20070602121928.G90169@kushnir1.kiev.ua> Message-ID: References: <20070602121928.G90169@kushnir1.kiev.ua> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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 Reply-To: Daniel Eischen List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jun 2007 13:00:13 -0000 On Sat, 2 Jun 2007, Vladimir Kushnir wrote: > Hello, guys. [ ... ] > *lib: > %{!shared: > %{!pg: %{pthread:-lpthread} -lc} > %{pg: %{pthread:-lpthread_p} -lc_p} > } > %{shared: %{pthread:-lpthread} -lc} > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Is this behaviour intended? Of course. See src/UPDATING 20070513. libpthread is installed as libkse, and libpthread.so is a link to either libthr.so.3 (by default) or libkse.so.3 (when DEFAULT_THREAD_LIB=libpthread). You can still explicitly choose which library you want when building ports by setting PTHREAD_LIBS=-lkse or PTHREAD_LIBS=-lthr. If you use PTHREAD_LIBS=-pthread or PTHREAD_LIBS=-lpthread, then the default library will be used (whatever the link libpthread.so points to). -- DE