From owner-freebsd-threads@FreeBSD.ORG Mon Feb 4 17:23:11 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 B08A416A46C for ; Mon, 4 Feb 2008 17:23:11 +0000 (UTC) (envelope-from karl.h.beckers@gmx.net) Received: from grotesk.our-isp.org (www.our-isp.org [82.165.43.21]) by mx1.freebsd.org (Postfix) with ESMTP id DE83C13C455 for ; Mon, 4 Feb 2008 17:23:10 +0000 (UTC) (envelope-from karl.h.beckers@gmx.net) Received: from www.our-isp.org (localhost [127.0.0.1]) by grotesk.our-isp.org (Postfix) with ESMTP id 747FD26800; Mon, 4 Feb 2008 18:23:06 +0100 (CET) Received: from 192.9.112.196 (SquirrelMail authenticated user khb@jarre-de-the.net) by www.our-isp.org with HTTP; Mon, 4 Feb 2008 18:23:06 +0100 (CET) Message-ID: <58004.192.9.112.196.1202145786.squirrel@www.our-isp.org> In-Reply-To: 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, 4 Feb 2008 18:23:06 +0100 (CET) From: "Karl H. Beckers" To: "Daniel Eischen" User-Agent: SquirrelMail/1.4.4 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Cc: "Karl H. Beckers" , Dag-Erling =?iso-8859-1?Q?Sm=C3=B8rgrav?= , 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:23:11 -0000 whoa, slowly please, you're loosing me. So, there is: -lthr -pthread -lpthread -lc_r lthread -kthread I've read one opinion (a) saying I should use: -lthr -lpthread -lc_r (because -pthread might not be safe on all versions) the autoconf module (b) does: -kthread lthread -pthread (now what's -kthread and lthread and how do they relate to -lthr or -lc_r) And the other opinion (c) I heard was: -pthread -lc_r (and leave anything else to the user and PTHREAD_LIBS) And I take it that (c) is what your ports system is doing and the discussion is around whether that's the right thing to do? Karl.