-pthread deprecated, but when?
Doug Barton
DougB at FreeBSD.org
Tue Sep 9 16:14:08 PDT 2003
On Tue, 9 Sep 2003, Khairil Yusof wrote:
> On Tue, 2003-09-09 at 16:07, Doug Barton wrote:
>
> > Any occurences of -lc_r should be changed to ${PTHREAD_LIBS} too.
>
> Seems that -lc_r is set by default in bsd.port.mk for ${PTHREAD_LIBS}.
The reason we use the variable is that it expands differently on
different platforms, so in theory it's always doing the right thing.
> Does it mean that we should be able to specify a pthread library in
> future as a make option for installing ports?
It means that you should always use the existing method of substituting
any instances of -pthread or -lc_r that are hard coded into a port with
${PTHREAD_LIBS}.
Doug
--
This .signature sanitized for your protection
More information about the freebsd-current
mailing list