From owner-freebsd-threads@FreeBSD.ORG Sun Jul 18 16:44:24 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA1A116A4D0; Sun, 18 Jul 2004 16:44:24 +0000 (GMT) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6559C43D49; Sun, 18 Jul 2004 16:44:24 +0000 (GMT) (envelope-from eischen@vigrid.com) Received: from mail.pcnet.com (mail.pcnet.com [204.213.232.4]) by mail.pcnet.com (8.12.10/8.12.1) with ESMTP id i6IGiNjh002233; Sun, 18 Jul 2004 12:44:23 -0400 (EDT) Date: Sun, 18 Jul 2004 12:44:23 -0400 (EDT) From: Daniel Eischen X-Sender: eischen@pcnet5.pcnet.com To: Robert Watson In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: threads@freebsd.org Subject: Re: A way to build and install libpthread as 1:1 as well as M:N? X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: deischen@freebsd.org List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Jul 2004 16:44:24 -0000 On Sun, 18 Jul 2004, Robert Watson wrote: > > On Sun, 18 Jul 2004, Daniel Eischen wrote: > > > The way to do this so it is switchable without relinking the application > > (and without using libmap.conf) is to use LD_LIBRARY_PATH. You can > > install libpthread built as 1:1 anywhere you like and just set > > LD_LIBRARY_PATH to wherever it is installed. > > > > If you want both 1:1 and M:N versions of libpthread installed by > > default, we have to decide where to install the 1:1 version. I would > > recommend 1:1 go in lib/lwp/libpthread.so.1 and M:N in > > lib/libpthread.so.1. You could change "lwp" to "kse" or something > > else. > > The issue here is my keeping everything in sync and making sure testing is > reproduceable. If I'm manually building and installing threading > libraries, I'm likely to screw it up. I was hoping for a mechanism in > buildworld/installworld so that it all happens automatically, reducing the > chances of user error, stale library versions, etc. Well, like I said, if we can agree on a place to put the 1:1 version and what to call it, we can make it happen. My suggestion is to keep the libraries named the same, install them in different places, and use LD_LIBRARY_PATH to switch between them. Should I just do it, or is more discussion needed? -- Dan Eischen