threading in FreeBSD (acx_pthreads)
Karl H. Beckers
karl.h.beckers at gmx.net
Mon Feb 4 09:23:11 PST 2008
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.
More information about the freebsd-threads
mailing list