From owner-freebsd-current@FreeBSD.ORG Thu May 29 14:39:13 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 14DD137B401 for ; Thu, 29 May 2003 14:39:13 -0700 (PDT) Received: from mail.speakeasy.net (mail15.speakeasy.net [216.254.0.215]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D2AB43F3F for ; Thu, 29 May 2003 14:39:10 -0700 (PDT) (envelope-from jhb@FreeBSD.org) Received: (qmail 18041 invoked from network); 29 May 2003 21:39:08 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender )encrypted SMTP for ; 29 May 2003 21:39:08 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.12.8/8.12.8) with ESMTP id h4TLd6p0085567; Thu, 29 May 2003 17:39:07 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.4 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20030529212252.GA922@basement.kutulu.org> Date: Thu, 29 May 2003 17:39:18 -0400 (EDT) From: John Baldwin To: Michael Edenfield cc: freebsd-current@freebsd.org cc: James Tanis Subject: Re: Libthr stable enough for testing X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 May 2003 21:39:13 -0000 On 29-May-2003 Michael Edenfield wrote: > * James Tanis [030529 17:18]: > >> How does one go about using libthr? Is all that is >> involved is symlinking libc_r to libthr? > > That's the easiest way. You can also explicitly link applications > with -lthr instead of -lc_r. And since libthr and libc_r are both 6 > characters long, you could also use ed/sed/etc. to s/libc_r/libthr/ in > the executable itself. > > Also, there is a patch (I think it's still a patch) floating around > the mailing list archives to use an external config file so you can > replace the threading library at run-time per-executable. It has been committed. Build rtld with WITH_LIBMAP defined and then setup a libmap.conf. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/