Hi,

I've just recently built gcc for the Coldfire/m68k under msys/mingw.  To get
the build working, I used a few patches from the winavr project, patching
collect2.c, c-incpath-c, and mkfixinc.sh.  I mentioned this on the Coldfire
mailing list, and got the attached response from one of the gurus there.
I'm thus passing it on to this list, in case it is of interest to the winavr
builders.

mvh.,

David



----- Original Message -----
From: "Chris Johns" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 02, 2006 12:34 PM
Subject: Re: [ColdFire] Debugging MCF5282 applications


> David Brown wrote:
> > I don't actually know when collect2 is used.
>
> It is used when you do not have a current version of GNU ld, or cannot
> use the GNU ld, to handle the calling of constructors for global or
> static objects.
>
> A simple hack is to add:
>
>   USE_COLLECT2 =
>
> to the target config file, eg 'gcc/config/m68k/t-m68kelf'.
>
> Refs:  http://www.psc.edu/general/software/packages/gcc/manual/gcc_54.html
> http://gcc.gnu.org/ml/gcc-patches/2003-09/msg01732.html
>
> Regards
> Chris
> --------------------------------------------------------------------
> To Subscribe send a message to:      [EMAIL PROTECTED]
> To Unsubscribe send a message to:    [EMAIL PROTECTED]
> For further information, visit:      <http://www.WildRice.com/ColdFire/>
>
>
>




_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to