Ethereal-dev: [Ethereal-dev] libtool and rpath

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Bryan Henderson <hbryan@xxxxxxxxxx>
Date: Tue, 14 Oct 2003 10:38:56 -0700
I'd like to adjust the build so it doesn't generate an improper rpath in 
the 'ethereal' binary, but I'm running into libtool and wondering if this 
is really inherent libtool evil.  I need help from someone who understands 
libtool.

To review:  "rpath" is an attribute of an executable that tells in what 
directories to search for shared exec-time libraries the executable needs. 
 You set it at link time, e.g. with a -rpath or -R option to 'ld'.

On my system, like most Linux systems, rpaths are not generally 
appropriate.  You're supposed to choose the search path at run time, 
typically via /etc/ld.so.conf
and LD_LIBRARY_PATH.  Having an rpath for the GTK library built into the 
ethereal binary makes it and the GTK library not portable.  And in my 
case, the rpath happens to be wrong and leads to the wrong GTK library and 
ethereal won't work at all.

So why did the make file generate this rpath?  Does it need fixing or did 
I just do something wrong in configuring the build or installing the GTK 
library?

The make output shows that libtool is invoking the linker with the rpath 
option.