This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC-4.0.2 on Cygwin


Brian Rose wrote:

> OK here is where I get all confused. I am building a gcc in order to use
> that gcc to build m68k-elf programs. So when I am building the gcc, my
> target *should* be i686-pc-cygwin, correct? Because this gcc that I am
> building will *run* on my Cygwin PC.

No, you want --target to be m68k-elf for both gcc and binutils. 
--target is the machine for which the output of the tool is meant to be
run.  --host is the machine on which the tool itself will run.  If your
'as' is targeted at i686-pc-cygwin then that's not going to work.

Once you've built and installed binutils, you should have a
'm68k-elf-as' in the path and the gcc configure should find and use it. 
You can override this with --with-as I think.

Brian

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]