Building collect2 for C?
Ian Lance Taylor
ian@wasabisystems.com
Wed Mar 17 02:51:00 GMT 2004
DJ Delorie <dj@redhat.com> writes:
> > Because I'm building a cross-compiler:
> > --host=mingw32
> > --build=mingw32
> > and target != host
>
> You should have GNU ld in this case, though, assuming your target is
> supported by GNU ld. Why is collect2 needed *at all*?
As Zack said, it's needed to support -frepo.
Mind you, -frepo support does not require the fork/exec code in
collect2. In fact, it would be possible to use some judicious #ifdefs
to remove the fork/exec code from collect2 for almost all
targets--specifically all targets which do not have use_collect2=yes
in config.gcc. I think the only interesting targets which have
use_collect2=yes, and therefore do require the fork/exec code, are
HP/UX, AIX, and OpenBSD.
Ian
More information about the Gcc
mailing list