Date: Mon, 4 Feb 2008 09:42:26 -0500 From: John Baldwin <jhb@freebsd.org> To: freebsd-threads@freebsd.org Cc: "Karl H. Beckers" <karl.h.beckers@gmx.net> Subject: Re: threading in FreeBSD (acx_pthreads) Message-ID: <200802040942.26708.jhb@freebsd.org> In-Reply-To: <5913.192.9.112.196.1202124683.squirrel@www.our-isp.org> References: <5913.192.9.112.196.1202124683.squirrel@www.our-isp.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Monday 04 February 2008 06:31:23 am Karl H. Beckers wrote: > Hi all, > > could you please include me directly in your replies ... I haven't > subscribed. > > I'm trying to move my configure.in from manual threading libs detection > to acx_pthreads. That, however, prefers -kthread over -pthread where I > previously did this: > > if ( test -x /sbin/sysctl ) ; then > ac_my_freebsd_release=`/sbin/sysctl -n > kern.osreldate` > else > ac_my_freebsd_release=`/usr/sbin/sysctl -n > kern.osreldate` > fi > if ( expr ${ac_my_freebsd_release} \< 500016 ) ; then > LIBS="${LIBS} -pthread" > else > LIBS="${LIBS} -lc_r" > fi > > Could anybody make a recommendation of the propert thing to do on > FreeBSD? Is the acx_pthread assumption OK, or should I patch that? Just always use -pthread. -lc_r is wrong on 6.x+ anyway, but -pthread should always work. -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200802040942.26708.jhb>