Building collect2 for C?

E. Weddington eric@ecentral.com
Tue Mar 16 22:40:00 GMT 2004


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



More information about the Gcc mailing list