Why -D_THREAD_SAFE?
Dan Eischen
deischen at freebsd.org
Thu Nov 6 19:04:26 PST 2003
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
More information about the freebsd-threads
mailing list