This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Using CFLAGS with a cross-compiler
- To: Chris Johns <ccj at acm dot org>
- Subject: Re: Using CFLAGS with a cross-compiler
- From: Andreas Schwab <schwab at issan dot informatik dot uni-dortmund dot de>
- Date: 17 Nov 1997 11:50:44 +0100
- Cc: egcs list <egcs at cygnus dot com>
- References: <34701DDE.5C2DBC6F@acm.org>
Chris Johns <ccj@acm.org> writes:
|> hi
|> I am tring to build a m68k-coff cross-compiler on Linux using a linix
|> egcs native compiler. I decided to build to the cross-compiler with
|> extra flags to enable i686 code. The command was :
|> make CFLAGS="-m686 -O3"
|> The build failed when the just built cross-compiler (xgcc) was invoked
|> to compile SYSCALLS.c with the "-m686" flags.
|> Is this correct behaviour and my use of the flags is incorrect ?
You should put host-specific flags in CC.
--
Andreas Schwab "And now for something
schwab@issan.informatik.uni-dortmund.de completely different"
schwab@gnu.org