From owner-freebsd-threads@FreeBSD.ORG Mon Feb 4 17:13:57 2008 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3871316A469 for ; Mon, 4 Feb 2008 17:13:57 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id E7FDB13C478 for ; Mon, 4 Feb 2008 17:13:56 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.14.2/8.14.2/NETPLEX) with ESMTP id m14HDpgR006028; Mon, 4 Feb 2008 12:13:51 -0500 (EST) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-4.0 (mail.netplex.net [204.213.176.10]); Mon, 04 Feb 2008 12:13:51 -0500 (EST) Date: Mon, 4 Feb 2008 12:13:51 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= In-Reply-To: <86ir14d4xg.fsf@ds4.des.no> Message-ID: References: <5913.192.9.112.196.1202124683.squirrel@www.our-isp.org> <86ve54epyy.fsf@ds4.des.no> <43451.192.9.112.196.1202141118.squirrel@www.our-isp.org> <86zlugd5u0.fsf@ds4.des.no> <86ir14d4xg.fsf@ds4.des.no> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="-559023410-1483920592-1202145231=:13899" Cc: "Karl H. Beckers" , freebsd-threads@freebsd.org Subject: Re: threading in FreeBSD (acx_pthreads) X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2008 17:13:57 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---559023410-1483920592-1202145231=:13899 Content-Type: TEXT/PLAIN; charset=utf-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Mon, 4 Feb 2008, Dag-Erling Sm=C3=B8rgrav wrote: > Daniel Eischen writes: >> Dag-Erling Sm=C3=B8rgrav writes: >>> Daniel Eischen writes: >>>> No, do not use -lpthread. Refer to John Baldwin's response, -pthread = is >>>> what you should be using. >>> That is not what POSIX says. >> As far as I know, POSIX doesn't say how you link to a threads library. > > Sure it does, in the specification for the C compiler command. > >>> That is not what our own man pages say, either. >> Our ports system uses -pthread as the default, and we've been pushed >> this way because GNU has set it as some form of standard. All the >> macros out there seem to expect this as well. > > Which completely dodges my point about the man pages. Our man pages need to be updated. > And no matter how grand acx_pthreads is, it won't DTRT on FreeBSD > versions that have libkse as the default thread library. It depends on your point of view, but regardless it can be overridden with PTHREAD_LIBS to whatever thread library you want. If it were ever imported into our ports system, it would have to be patched to obey PTHREAD_LIBS, so why not make it play nice? --=20 DE ---559023410-1483920592-1202145231=:13899--