Subject: Re: FreeBSD and "Spinlock called when not threaded" and arts and
To: Jeremy C. Reed <reed@reedmedia.net>
From: Johnny Lam <jlam@NetBSD.org>
List: tech-pkg
Date: 05/04/2005 16:04:34
Jeremy C. Reed wrote:
> 
> I am looking closer at FreeBSD. FreeBSD does with the ports:
> 
> .if ${OSVERSION} < 500016
> PTHREAD_CFLAGS?=        -D_THREAD_SAFE
> PTHREAD_LIBS?=          -pthread
> .elif ${OSVERSION} < 502102
> PTHREAD_CFLAGS?=        -D_THREAD_SAFE
> PTHREAD_LIBS?=          -lc_r
> .else
> PTHREAD_CFLAGS?=
> PTHREAD_LIBS?=          -pthread
> .endif
> 
> where OSVERSION is "sysctl -n kern.osreldate"
> 
> I think that pkgsrc/mk/pthread.builtin.mk or
> pkgsrc/mk/pthread.buildlink3.mk can be improved so the workaround in
> devel/glib2/Makefile can be removed.

FWIW, this is already on my TODO list.  I've been talking with FreeBSD 
Ports people about how they deal with pthreads in their own ports system.

	Cheers,

	-- Johnny Lam <jlam@NetBSD.org>