Building collect2 for C?

Zack Weinberg zack@codesourcery.com
Tue Mar 16 23:50:00 GMT 2004


"E. Weddington" <eric@ecentral.com> writes:

> On 16 Mar 2004 at 15:52, DJ Delorie <dj@redhat.com> wrote:
>
>> 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*?

collect2 provides substantial functionality even for targets that use
GNU ld; notably -frepo.

> ... And before anyone goes off and says that "I should just build
> with Cygwin and be done with it", there are very valid reasons to
> build a toolset that does not link to the Cygwin DLL, mainly having
> to do with redistribution of the executables and versioning issues
> with that DLL.

Also, CodeSourcery's been providing mingw-hosted cross compilers to
several of its customers for awhile now (based on my old patch) and we
have indications that the compiler runs from 10 to 30% faster in this
configuration.

zw



More information about the Gcc mailing list