[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Multiple -rpaths
From: |
Braden McDaniel |
Subject: |
Re: Multiple -rpaths |
Date: |
Sat, 15 May 2004 20:00:59 -0400 |
On Sat, 2004-05-15 at 15:20, Scott James Remnant wrote:
> On Sat, 2004-05-15 at 02:27 -0400, Braden McDaniel wrote:
>
> > I'm getting this warning (using libtool 1.5.6):
> >
> > libtool: link: warning: ignoring multiple `-rpath's for a libtool
> > library
> >
> > I'm trying to build a module and I'm only explicitly adding one rpath in
> > LDFLAGS. The first one on the command line appears to be added by
> > libtool--it points to the module's installation directory. So the rpath
> > I'm adding is the one that gets ignored. Is there some way around this?
> >
> You're using the wrong option. -rpath is a Libtool command line option
> to tell it where you intend to install the Library (the RPATH other
> things might need to link to it).
>
> If you want to *encode* an RPATH into the library use -R/path/to/encode,
> you can use that as many times as you like.
Aha, thanks.
This appears to succeed in what it's supposed to do--running ldd on my
module now correctly lists the dependency rather than "not found".
However, it did not accomplish my objective, which was to get my module
loading correctly (it's a Mozilla plug-in). Mysteriously, loading still
fails with a complaint about a missing symbol--a symbol I know to be in
in this library to which I'm explictly encoding a path.
--
Braden McDaniel e-mail: <address@hidden>
<http://endoframe.com> Jabber: <address@hidden>