Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 3 Sep 2005 01:01:35 +0300 (EEST)
From:      Vladimir Kushnir <vkushnir@i.kiev.ua>
To:        hackers@freebsd.org
Subject:   libmap.conf: mapping directories?
Message-ID:  <20050903004621.L1919@kushnir1.kiev.ua>

next in thread | raw e-mail | index | archive | help
Hi all,
Is it doable to teach rtld (via libmap.conf) to map directories rather 
than libraries one-by-one? My problem is: I'm trying to use i386-built 
packages on my amd64 box. Most of them don't work 'cause of RPATH set to 
/usr/{X11R6,local}/lib where (obviously) 64-bit libs reside. And this 
is one of the reasons ia32 compatibility under amd64 arch is almost 
useless.
One way: to completely remove RPATH (with chrpath, for example - BTW, this 
is nice enough utility but to make it work with 32-bit objects one has to 
use some workarounds). It's not always convenient, though. Much, much better 
it would be to place ALL of ia32 compat stuff into something like 
/compat/freebsd32 like we do it for Linux stuff, but somehow nobody seems 
to be even remotely interested. And the last way I see (a workaround as 
well but hey, it's better than nothing at all) would be $SUBJECT. So my 
question is: is it possible to map, say, /usr/local/lib to 
/usr/local/lib32 and if yes how do I do it?

TIA,
Vladimir



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050903004621.L1919>