This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Building collect2 for C?
- From: "E. Weddington" <eric at ecentral dot com>
- To: DJ Delorie <dj at redhat dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 16 Mar 2004 15:52:26 -0700
- Subject: Re: Building collect2 for C?
- References: <40571F75.2743.5FCD02D@localhost> (eric@ecentral.com)
On 16 Mar 2004 at 17:44, DJ Delorie wrote:
>
> > Because I'm building a cross-compiler:
> > --host=mingw32
> > --build=mingw32
> > and target != host
>
> You should have GNU ld in this case,
Yes.
though, assuming your target is
> supported by GNU ld.
Yes.
> Why is collect2 needed *at all*?
*Exactly* the same question I asked that started this thread. :-)
I know I have GNU ld and that the target supports GNU ld, because I'm using the
Cygwin environment to build in (building the cross compiler with CC="gcc -mno-
cygwin") and there are two separate targets that I'm interested in building:
avr and m68k-elf. And I know that this issue has existed at least for 1.5 years
on the avr.
> > It does make me wonder why it works for DJGPP, though I wonder if
> > that it works because you're building a native compiler, not a
> > cross.
>
> Yes, djgpp is native. Amusingly enough, the last djgpp-hosted cross
> compiler I built targetted Linux.
Same processor, though?
Eric