From: Ted Goodridge <tedgoodridgejr@acm.org>
To: axp-list@redhat.com, Kelledin <kelledin+AXP@skarpsey.dyndns.org>
Subject: Re: Shared objects+global variables?
Date: Thu, 14 Nov 2002 15:37:00 -0600 [thread overview]
Message-ID: <200211141537.00566.tedgoodridgejr@acm.org> (raw)
In-Reply-To: <200211140711.38600.kelledin+AXP@skarpsey.dyndns.org>
> > > > ... whenever I try to compile a library that does this,
> > > > ld complains about "gp-relative relocations" and refuses
> > > > to link.
> > >
> > > You MUST use -fpic or -fPIC.
> >
<snip>
> Ummm. Well...
>
> It works now. I'm not exactly sure why, but recompiling gcc
> seemed to fix the problem. I wish I knew how that happened...
So you recompiled GCC with -fPIC (from LFS), then you were able to compile
Glib without problems? or is this related to another package?
Ted
prev parent reply other threads:[~2002-11-14 21:37 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-14 3:21 Shared objects+global variables? Kelledin
2002-11-14 6:55 ` Richard Henderson
2002-11-14 12:56 ` Kelledin
2002-11-14 13:11 ` Kelledin
2002-11-14 21:37 ` Ted Goodridge [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox