Subject: Re: libtool problem with runtime shlib path propagation
To: Todd Vierling <tv@wasabisystems.com>
From: Nick Hudson <skrll@netbsd.org>
List: tech-pkg
Date: 02/15/2002 08:16:19
On Thursday 14 February 2002 6:52 pm, Todd Vierling wrote:
> On Wed, 13 Feb 2002, Matthias Drochner wrote:
>
> : A package builds a shared library (using libtool) which
> : depends on X11 libraries.
> : The linker call looks like
> : libtool --mode=link cc -o lib.la *.lo -L/usr/X11R6/lib
-Wl,-R/usr/X11R6/lib
> : -lX11
>
> When using libtool, the correct option is "-rpath". -Wl,-R should only be
> used by non-libtoolized packages. libtool converts "-rpath" to the linker
> options detected by libtool's configure step.
I don't think this is the required option here.
-rpath is used by libtool to denote the install location of a library. If a
library is linked (using libtool) against the resulting libfoo.la file then
this "install" directory will appear in the DT_RPATH of this new library.
The option to libtool's -rpath will not appear in the DT_RPATH of the
resulting library.
Nick