[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r17831 - in trunk/packages/rpm: redhat-7.x rhel-3 rhel-4

From: Peter Samuelson <peter_at_p12n.org>
Date: 2005-12-18 07:17:19 CET

[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

This is an archived mail posted to the Subversion Dev mailing list.