Cross compilation and compilation flags

grahams@rcp.co.uk grahams@rcp.co.uk
Mon Nov 10 11:34:00 GMT 1997


All,

I have egcs-971105 configured to cross compile from a linux Intel host to a
 Arm target.

I would like to specify different compilation flags for host and target 
compilations.

For example specify "-mpentium"  for host and" -mcpu=strongarm110" for 
target.

Is this currently possible with egcs-971105?

There does not appear to be any macros in the top-level Makefile which will
consistantly ripple down to all the sub makefiles and always specify the
appropriate compilation flags.

I have managed to hack all the Makefile.in files and configure.in to do what 
I
want.

Graham



More information about the Gcc mailing list