[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Linking with relocated libraries
From: |
Andreas Buening |
Subject: |
Re: Linking with relocated libraries |
Date: |
Tue, 10 Feb 2004 19:08:18 +0100 |
Paul Smith wrote:
[the problem]
> Under $ROOT will be a complete image of a working filesystem, so I'll
> have $ROOT/etc, $ROOT/usr/bin, $ROOT/var, etc. etc.
>
> The thing about this image is that I will be taking it and actually
> booting off of it: at _runtime_ the paths will be /usr/lib, not
> $ROOT/usr/lib.
[running libtool]
> Note how the path to glib can been changed from -lglib, to
> "/usr/lib/libglib.so", ignoring my -L setting. And of course, this is
> the wrong one so it fails.
Just for curiosity: You didn't say how you invoked configure. With
--prefix=/usr/local/images/usr it might be possible to prevent libtool
from using /usr/local. On the other hand, you might have found a libtool
bug. ;-)
Andreas