Date: Sun, 18 Jul 2004 12:32:18 -0400 (EDT) From: Robert Watson <rwatson@freebsd.org> To: Daniel Eischen <eischen@vigrid.com> Cc: threads@freebsd.org Subject: Re: A way to build and install libpthread as 1:1 as well as M:N? Message-ID: <Pine.NEB.3.96L.1040718123025.37108b-100000@fledge.watson.org> In-Reply-To: <Pine.GSO.4.10.10407181224340.28820-100000@pcnet5.pcnet.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Principal Research Scientist, McAfee Research
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.96L.1040718123025.37108b-100000>