On Wed, 31 Jan 2007 11:40:19 -0800 Danek Duvall wrote:
> How do you envision the same issues playing out in /usr/lib?

> Do we force developers who want their apps to link to a consistent set of
> libraries from one machine to the next to use -R/usr/sun/lib?

> One thing we've found over the years is that developers are either
> unwilling to use -R, don't know about it, or don't use it correctly.  In
> general, forcing its use appears to be problematic.

> Or do you see another solution?

use
        -Wl,-z,origin -Wl,-R,\$ORIGIN/../lib
and when
        /usr/foo/bin/xyz
is moved/copied to
        /usr/bar/bin/xyz
then so must its associated libraries
        /usr/foo/lib/... => /usr/bar/lib/...

this allows a.out's to be installed in different bins without
requiring relink to reset static absolute -R paths

-- Glenn Fowler -- AT&T Research, Florham Park NJ --


Reply via email to