Hi,

My project (http://www.nongnu.org/gcmd/) consists of two parts. One shared library and 
one ordinary executable linked agains the library. The library gets built alright but 
when building the executable libtool doesn't respect the $prefix that was choosen at 
configure-time. What I mean is that the rpath that libtool uses at link-time always 
gets set to /usr/local/lib regardless of the $prefix. This obviously causes a problem 
after the install since the executable is linked against a library in /usr/local/lib 
that doesn't exist.

I checked the libtool script av saw that the variable used for rpath is libdir. 
Checking further I saw that all makefiles have libdir setup correctly to $(prefix)/lib.

So my question basicly is: where does libtool get the libdir variable from? And then 
what is the correct way of getting the correct value there?

BTW: I have checked other packages such as xmms that has the same basic layout with a 
library and an executable. They all work so its not a problem with the installation, 
its rather a problem with me not being able to figure out why they work and not my 
project ;)

Please CC replies to me

/Marcus



Reply via email to