Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Feb 2008 18:23:06 +0100 (CET)
From:      "Karl H. Beckers" <karl.h.beckers@gmx.net>
To:        "Daniel Eischen" <deischen@freebsd.org>
Cc:        "Karl H. Beckers" <karl.h.beckers@gmx.net>, Dag-Erling =?iso-8859-1?Q?Sm=C3=B8rgrav?= <des@des.no>, freebsd-threads@freebsd.org
Subject:   Re: threading in FreeBSD (acx_pthreads)
Message-ID:  <58004.192.9.112.196.1202145786.squirrel@www.our-isp.org>
In-Reply-To: <Pine.GSO.4.64.0802041157030.13899@sea.ntplx.net>
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
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.





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?58004.192.9.112.196.1202145786.squirrel>