threading in FreeBSD (acx_pthreads)
Karl H. Beckers
karl.h.beckers at gmx.net
Mon Feb 4 03:50:32 PST 2008
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?
TIA,
Karl.
More information about the freebsd-threads
mailing list