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: gcc at gcc dot gnu dot org, DJ Delorie <dj at redhat dot com>
- Date: Tue, 16 Mar 2004 15:38:29 -0700
- Subject: Re: Building collect2 for C?
On 16 Mar 2004 at 17:01, DJ Delorie wrote:
>
> > And for any other target that uses GNU ld as well. So what? That's still
> > only a subset of the targets which need collect2 functionality. Do you plan
> > to require those platforms to use GNU ld instead of their system linker?
>
> No, just wondering why my djgpp build builds collect2.exe. Or why a
> collect2 issue affects MinGW.
>
Because I'm building a cross-compiler:
--host=mingw32
--build=mingw32
and target != host
and then collect2 is trying to be built and it dies because of POSIX calls such
as fork(), pipe(), et al., which of course is unavailable on Windows, so the
build dies.
Apparently, from what I've read, is that it builds fine when configuring for a
*native* compiler (mingw32), though that's not what I'm trying to do.
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.
Eric