From owner-freebsd-threads@FreeBSD.ORG Mon Feb 4 17:09:40 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 BF75016A41B; Mon, 4 Feb 2008 17:09:40 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 795FC13C455; Mon, 4 Feb 2008 17:09:40 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id B9AD72083; Mon, 4 Feb 2008 18:09:31 +0100 (CET) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: -0.2/3.0 X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on tim.des.no Received: from ds4.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 3F6EF207E; Mon, 4 Feb 2008 18:09:31 +0100 (CET) Received: by ds4.des.no (Postfix, from userid 1001) id 285A7844A0; Mon, 4 Feb 2008 18:09:31 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: Daniel Eischen 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> Date: Mon, 04 Feb 2008 18:09:31 +0100 In-Reply-To: (Daniel Eischen's message of "Mon\, 4 Feb 2008 12\:02\:05 -0500 \(EST\)") Message-ID: <86ir14d4xg.fsf@ds4.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Feb 2008 17:09:40 -0000 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. And no matter how grand acx_pthreads is, it won't DTRT on FreeBSD versions that have libkse as the default thread library. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no