Date: Thu, 06 Nov 2003 22:02:47 -0500 From: Dan Eischen <deischen@freebsd.org> To: Craig Rodrigues <rodrigc@crodrigues.org> Cc: threads@freebsd.org Subject: Re: Why -D_THREAD_SAFE? Message-ID: <3FAB0B57.6050001@freebsd.org> References: <20031105042423.GA1527@crodrigues.org>
index | next in thread | previous in thread | raw e-mail
Craig Rodrigues wrote:
> Hi,
>
> In /usr/ports/Mk/bsd.port.mk there is this:
>
> .if ${OSVERSION} < 500016
> PTHREAD_CFLAGS= -D_THREAD_SAFE
> PTHREAD_LIBS= -pthread
> .else
> PTHREAD_CFLAGS= -D_THREAD_SAFE
> PTHREAD_LIBS= -lc_r
> .endif
>
>
> I understand that -pthread has been deprecated
> in gcc in -CURRENT. Why is -D_THREAD_SAFE
> needed?
It's not needed, but it isn't hurting anything either.
The ports team should probably remove it.
--
Dan Eischen
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3FAB0B57.6050001>
