Date: Mon, 04 Feb 2008 18:09:31 +0100 From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no> To: Daniel Eischen <deischen@freebsd.org> Cc: "Karl H. Beckers" <karl.h.beckers@gmx.net>, freebsd-threads@freebsd.org Subject: Re: threading in FreeBSD (acx_pthreads) Message-ID: <86ir14d4xg.fsf@ds4.des.no> In-Reply-To: <Pine.GSO.4.64.0802041157030.13899@sea.ntplx.net> (Daniel Eischen's message of "Mon\, 4 Feb 2008 12\:02\:05 -0500 \(EST\)") 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> <Pine.GSO.4.64.0802041112260.13899@sea.ntplx.net> <86zlugd5u0.fsf@ds4.des.no> <Pine.GSO.4.64.0802041157030.13899@sea.ntplx.net>
next in thread | previous in thread | raw e-mail | index | archive | help
Daniel Eischen <deischen@freebsd.org> writes: > Dag-Erling Sm=C3=B8rgrav <des@des.no> writes: > > Daniel Eischen <deischen@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?86ir14d4xg.fsf>