This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc configure with gnu ld
- To: Peter Kurpis <pkurpis at keck dot hawaii dot edu>
- Subject: Re: gcc configure with gnu ld
- From: David Berthelot <davidb at Magma-DA dot COM>
- Date: Wed, 04 Apr 2001 17:58:36 -0700
- CC: gcc-help at gcc dot gnu dot org
- References: <200104042027.KAA11392@kalani.keck.hawaii.edu>
Are you doing all that in order to use ild (sun's incremental linker)
instead of GNU ld ?
If so I would be interested if you can succeed because I have never been
able to make gcc + ild work.
Thanks.
David
Peter Kurpis wrote:
> > From aoliva@redhat.com Wed Apr 4 01:36:41 2001
>
> > I must be missing something. Where does collect2 fit into the
> > picture? To the best of my knowledge, it just passes these flags on
> > to the actual linker.
>
> Okay, I got the explanation. I looked at collect.c cursorily,
> and although it seemingly parses some args, it passes most to
> a fork to ld .
>
> The confusing thing turned out to be the behavior of GNU ld ,
> specifically with respect to the -R flag, which behaved like
> -rpath , although was documented (or so I thought, from the
> docs I'd seen) to do something completely different.
>
> But I just checked www.gnu.org/manual for the official ld
> manual, and on ELF systems, -R followed by a pathname does
> indeed behave like -rpath , for compatibility.
>
> As a sidenote, I just rebuilt gcc to point to the Solaris
> as and ld , using your suggestion, and it only works with
> -R now, as expected.
>
> Just goes to show me to RTFM. ;-) Thanks for your help!