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:
http://www.gnu.org/software/libtool/manual.html#Linking-executables
e.g. every default install of httpd on any platform would not work, if
this were not the case.
joe
---------------------------------------------------------------------
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