On Tue, May 04, 2004 at 11:37:15AM -0700, Justin Erenkrantz wrote:
> --On Sunday, May 2, 2004 1:14 PM +0100 Joe Orton <jorton@redhat.com> wrote:
>
> >I've never seen an RPATH in the SVN libraries like David mentioned; but
> >the RPATH in SVN programs is really just a mis-use of libtool; -rpath is
> >only supposed to be used when linking libraries not programs. We use
> >this in the Red Hat RPMs:
>
> Um, how would the OS find the libraries from the binaries if -R isn't
> specified? -- justin
They're in /usr/lib, so via the standard search algorithm (man ld.so).
A binary with an RPATH of /usr/lib is usually a bug from a packager's
perspective; at best it causes a few redundant open() calls in the
run-time loader; at worst it screws up selection of libraries by causing
a generic unoptimised /usr/lib/libdb-4.x.so to be chosen over
arch-variant-optimised /lib/i686/libdb-4.x.so, for instance.
Regards,
joe
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue May 4 21:35:03 2004