threading in FreeBSD (acx_pthreads)
Dag-Erling Smørgrav
des at des.no
Mon Feb 4 09:09:40 PST 2008
Daniel Eischen <deischen at freebsd.org> writes:
> Dag-Erling Smørgrav <des at des.no> writes:
> > Daniel Eischen <deischen at 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
--
Dag-Erling Smørgrav - des at des.no
More information about the freebsd-threads
mailing list