Subject: Re: OT:info on linking object files together
To: None <netbsd-help@netbsd.org>
From: Soren Jacobsen <soren@blef.org>
List: netbsd-help
Date: 01/04/2003 00:53:27
On Fri, Jan 03, 2003 at 09:48:49PM -0500, Sam Carleton wrote:
> On Fri, Jan 03, 2003 at 02:38:01PM -0800, Soren Jacobsen wrote:
> > On Fri, Jan 03, 2003 at 03:10:44PM -0500, Sam Carleton wrote:
> >
> > > I added this to my link command line:
> > >
> > > -Wl,-rpath -Wl,/usr/pkg/lib
> >
> > Perhaps necessary, but not useful in solving your problem.
>
> I don't understand why you say this. In the little
> application I wrote, it was not able to locate a library which
> was located in /usr/pkg/lib at runtime. After linking with
> the above options, all worked fine.
I was under the impression that things weren't making it that far.
> > ld itself doesn't recognize -Wl,-rpath -Wl,/usr/pkg/lib, it recognizes
> > -rpath /usr/pkg/lib, and LDFLAGS are passed to ld, not gcc.
>
> Ok, with this bit of info, I tried the following but with no
> avail. Any thoughts?
>
> LDFLAGS = -L/usr/local/lib -L/usr/local/BerkeleyDB.3.3/lib -L/usr/local/ssl/lib -rpath /usr/local/BerkeleyDB.3.3/lib
> export LDFLAGS
Check config.log or configure.log for a better diagnostic. I'm too tired
to think right now.
--
Soren Jacobsen