Date: Wed, 11 Feb 2004 08:17:52 +0800 From: leafy <leafy@leafy.idv.tw> To: freebsd-ports@freebsd.org Subject: Re: How to determine which pthread, was: Re: last libc_r dependenciesleft on current Message-ID: <20040211001752.GA20288@chihiro.leafy.idv.tw> In-Reply-To: <20040210223625.C6F4C83@toad.stack.nl> References: <20040210223625.C6F4C83@toad.stack.nl>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040211001752.GA20288>