Re: help: disabling relinking stupidity in libtool
On Tue, 10 Jun 2003 10:35:35 -0400, Ari Pollak wrote:
> $ ldd debian/libgimp1.3/usr/lib/libgimpui-1.3.so.15
> libgimp-1.3.so.14 => /usr/lib/libgimp-1.3.so.14 (0x40022000)
> libgimpwidgets-1.3.so.14 => /usr/lib/libgimpwidgets-1.3.so.14
> (0x40039000)
> libgimpbase-1.3.so.15 => not found
Hmm...
$ LD_LIBRARY_PATH=$PWD/debian/libgimp1.3/usr/lib ldd ...
should produce the correct output.
Along the same line, you need to set LD_LIBRARY_PATH is a similar way
when calling dpkg-shlibdeps. Take a look at dh_shlibdeps for a good
example of how to get it right. Look in dpkg-shlibdeps itself if you
want to understand what's going on.
> I know this is only a problem when installing because the library
> created with just a 'make' does not depend on any older gimp libraries
> in /usr/lib, but instead depends on the current version of all of the
> libraries.
Yep. libtool does that. It's very annoying but otherwise harmless if
you are careful. Beware! libtool will insist on hard-coding an RPATH in
the library. Notice that you'll have to tweak the .la file, too.
Marcelo
Reply to: