How to determine which pthread, was: Re: last libc_r dependenciesleft on current

leafy leafy at leafy.idv.tw
Tue Feb 10 16:17:55 PST 2004


On Tue, Feb 10, 2004 at 11:36:25PM +0100, Marco van de Voort wrote:
> How can I detect (in a non C/libc program, iow without using headers or
> libraries, so in the general FreeBSD environment), whether I should pass
> -lc_r to the linker or -lc -lpthread ? 
> (sysctl or uname based solutions come to mind)
sysctl -n kern.osreldate would be a useful candidate if you don't want
to include bsd.port.mk

Jiawei
-- 
"Without the userland, the kernel is useless."
               --inspired by The Tao of Programming


More information about the freebsd-ports mailing list