libtool and --rpath


I have a system where I compile and install programs in one directory,
and then I link those files to /usr/local/{bin,lib,man,...}. It used to
work fine until recently when I started having problems with ldd not
finding (certain) new libraries. I narrowed it (I believe) to the use
of --rpath in libtool. How can I tell libpath to encode
-Wl,/usr/local/lib when compiling but have it install the actual files
elsewhere? Right now, I do:

configure --prefix=/my/dir

Then I edit the libtool script to put -Wl,/usr/local/lib but I'm sure
there's a better way to do this. Any help is appreciated.



Penguin Power!

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