Wait, isn't rpath supposed to be set automagically?

2012-02-26 Thread Miles Bader
I thought that as long as one used .la libraries, automake+libtool was supposed to handle all the grotty stuff like rpath automatically, adding -rpath $(libdir) if you depend on libraries installed to libdir and libdir isn't on the system library search path. [Yeah, I also know some people hate

Re: Wait, isn't rpath supposed to be set automagically?

2012-02-26 Thread Stefano Lattarini
On 02/26/2012 03:47 PM, Miles Bader wrote: I thought that as long as one used .la libraries, automake+libtool was supposed to handle all the grotty stuff like rpath automatically, adding -rpath $(libdir) if you depend on libraries installed to libdir and libdir isn't on the system library

Re: Wait, isn't rpath supposed to be set automagically?

2012-02-26 Thread Miles Bader
2012年2月27日0:58 Peter Johansson troj...@gmail.com: On which system do you experience this? I've seen this problem on Fedora and the problem was that the linker search path and the dynamic loader search path were different. IIUC libtool sets -rpath if a used library is outside linker path.

Re: Wait, isn't rpath supposed to be set automagically?

2012-02-26 Thread Peter Johansson
On 2/26/12 11:31 PM, Miles Bader wrote: I think it's desirable that it just work wherever it gets installed, and no matter who installs it (e.g. prefix=$HOME should work, and shouldn't require setting LD_LIBRARY_PATH). In my case it did work with prefix=$HOME because in that case -rpath was

Re: Wait, isn't rpath supposed to be set automagically?

2012-02-26 Thread Miles Bader
2012年2月27日1:46 Peter Johansson troj...@gmail.com: I think it's desirable that it just work wherever it gets installed, and no matter who installs it (e.g. prefix=$HOME should work, and shouldn't require setting LD_LIBRARY_PATH). In my case it did work with prefix=$HOME because in that case

Re: Wait, isn't rpath supposed to be set automagically?

2012-02-26 Thread Miles Bader
2012年2月27日9:41 Bob Friesenhahn bfrie...@simple.dallas.tx.us: Just using the command: sudo ldconfig after installing my package makes everything work! This is a function that libtool normally performs if it is used properly. I did: sudo make install Is that not using it properly? -miles

Re: Wait, isn't rpath supposed to be set automagically?

2012-02-26 Thread Russ Allbery
Miles Bader mi...@gnu.org writes: 2012年2月27日9:41 Bob Friesenhahn bfrie...@simple.dallas.tx.us: This is a function that libtool normally performs if it is used properly. I did: sudo make install Is that not using it properly? Something needs to run libtool --mode=finish. I thought

Re: Wait, isn't rpath supposed to be set automagically?

2012-02-26 Thread Miles Bader
2012年2月27日16:21 Russ Allbery r...@stanford.edu: This is a function that libtool normally performs if it is used properly. I did: sudo make install Something needs to run libtool --mode=finish. I thought Automake normally arranged to run that at the end of make install. Is that not