Re: -pthread deprecated, but when?

From: Doug Barton <DougB_at_FreeBSD.org>
Date: Tue, 9 Sep 2003 16:14:04 -0700 (PDT)
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
Received on Tue Sep 09 2003 - 14:14:08 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:22 UTC