Re: Linking with relocated libraries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux