[David Summers]
> Hmmm, I don't know. I just know I tried this and it worked. I
> didn't know I could delete the RPATH, I thought it needed it?
On any vaguely modern unixy system with proper package management you
should never need an rpath. The rpath is just to override the runtime
linker's own notions of where to find shared libraries to resolve
symbols from. "/usr/lib" in particular will always be in the default
search path. On glibc systems like Red Hat that'll be /etc/ld.so.conf
and a short built-in list ("strings /lib/ld-linux.so.2 | grep /lib").
rpath and its cousin the LD_LIBRARY_PATH environment variable are
useful if you *need* to ship your own private copy of some library that
will already exist on the system. That should be rare with proper
package management. Another use for LD_LIBRARY_PATH in particular is
to run something "in situ" before it's installed, as the svn test suite
must do.
Peter
Received on Sun Dec 18 07:18:00 2005