From owner-freebsd-ports@FreeBSD.ORG Tue Feb 10 16:17:55 2004 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3DD8C16A4CE for ; Tue, 10 Feb 2004 16:17:55 -0800 (PST) Received: from seed.net.tw (sn13.seed.net.tw [139.175.54.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 15DD843D1F for ; Tue, 10 Feb 2004 16:17:55 -0800 (PST) (envelope-from leafy@leafy.idv.tw) Received: from [61.59.121.140] (port=50567 helo=chihiro.leafy.idv.tw) by seed.net.tw with esmtp (Seednet 4.23:1) id 1Aqi4d-000Pt0-94 for freebsd-ports@freebsd.org; Wed, 11 Feb 2004 08:17:51 +0800 Received: from localhost (localhost [127.0.0.1]) by chihiro.leafy.idv.tw (Postfix) with ESMTP id 7F2CB3D9 for ; Wed, 11 Feb 2004 08:17:53 +0800 (CST) Received: from chihiro.leafy.idv.tw ([127.0.0.1]) by localhost (chihiro.leafy.idv.tw [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08409-01 for ; Wed, 11 Feb 2004 08:17:53 +0800 (CST) Received: by chihiro.leafy.idv.tw (Postfix, from userid 1000) id F105631F; Wed, 11 Feb 2004 08:17:52 +0800 (CST) Date: Wed, 11 Feb 2004 08:17:52 +0800 From: leafy To: freebsd-ports@freebsd.org Message-ID: <20040211001752.GA20288@chihiro.leafy.idv.tw> Mail-Followup-To: freebsd-ports@freebsd.org References: <20040210223625.C6F4C83@toad.stack.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=big5 Content-Disposition: inline In-Reply-To: <20040210223625.C6F4C83@toad.stack.nl> User-Agent: Mutt/1.5.5.1i X-Virus-Scanned: by amavisd-new at leafy.idv.tw Subject: Re: How to determine which pthread, was: Re: last libc_r dependenciesleft on current X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Feb 2004 00:17:55 -0000 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