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

Re: libtool issue

From: Joe Orton <jorton_at_redhat.com>
Date: 2007-12-06 11:48:50 CET

On Wed, Dec 05, 2007 at 01:41:30PM -0800, Justin Erenkrantz wrote:
> On Dec 5, 2007 2:57 AM, Joe Orton <jorton@redhat.com> wrote:
> > Subversion (unnecessarily) links executables using "-rpath $(libdir)",
> > so if you have old libraries in $(libdir) at build time it should be
> > expected that odd things will happen.
> >
> > I have previously argued that this is incorrect, and we've been fixing
> > it in the Fedora Subversion package for a long time, as below.
> Without -R, how would the resulting binary know where to find the
> shared libraries?

-R are -rpath are slightly different; -rpath has a specific meaning when
linking a library: "this is the installation directory", and is
equivalent to -R when linking an executable.

But the answer is: libtool *automatically* adds an RPATH when linking
against a library which is (or will be) installed in a non-system
directory. You do not have to explicitly request such RPATHs - this is
covered in the libtool manual:


e.g. every default install of httpd on any platform would not work, if
this were not the case.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Dec 6 11:49:14 2007

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.