Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 04 Feb 2008 15:49:41 +0100
From:      =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= <des@des.no>
To:        "Karl H. Beckers" <karl.h.beckers@gmx.net>
Cc:        freebsd-threads@freebsd.org
Subject:   Re: threading in FreeBSD (acx_pthreads)
Message-ID:  <86ve54epyy.fsf@ds4.des.no>
In-Reply-To: <5913.192.9.112.196.1202124683.squirrel@www.our-isp.org> (Karl H. Beckers's message of "Mon\, 4 Feb 2008 12\:31\:23 %2B0100 \(CET\)")
References:  <5913.192.9.112.196.1202124683.squirrel@www.our-isp.org>

next in thread | previous in thread | raw e-mail | index | archive | help
"Karl H. Beckers" <karl.h.beckers@gmx.net> writes:
> I'm trying to move my configure.in from manual threading libs detection
> to acx_pthreads [...]

I have no idea what acx_pthread is, but judging from your description,
it doesn't seem to do a very good job.  There's nothing wrong with
manual detection - see how Varnish does it:

http://varnish.projects.linpro.no/browser/trunk/varnish-cache/configure.ac

Note that the correct idiom according to POSIX is -lpthread, so that
should in theory work on all POSIX platforms.  The reason why Varnish
checks for -lthr explicitly is that there are FreeBSD versions where
-lpthread defaults to -lkse instead of -lthr, and -lkse has proven to
break rather badly under load.

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?86ve54epyy.fsf>