This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Using CFLAGS with a cross-compiler
- To: egcs list <egcs at cygnus dot com>
- Subject: Using CFLAGS with a cross-compiler
- From: Chris Johns <ccj at acm dot org>
- Date: Mon, 17 Nov 1997 21:35:10 +1100
- Organization: Objective Design Systems Pty Ltd.
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 ?
The egcs version is:
$ gcc -v
Reading specs from
/ods/egcs/lib/gcc-lib/i586-pc-linux-gnulibc1/egcs-2.90.16/specs
gcc version egcs-2.90.16 971105 (gcc2-970802 experimental)
Thanks
--
Chris Johns Networks, Plessey Asia Pacfic Pty. Ltd.
mailto:ccj@acm.org mailto:cjohns@plessey.com.au