Setting up a build tree for a new architecture
Doug Evans
dje@transmeta.com
Tue Jul 9 10:41:00 GMT 2002
J. Johnston writes:
> "H. Peter Anvin" wrote:
> > [...]
> > I have added my new platform, i386-pc-com32, to config.sub, and since
> > newlib seems to insist on calling i386-pc-com32-<toolname> for all the
> > tools (gcc, ld, ar, ...) I set up symlinks for them.
> > [...]
>
> [...]
> Note you can override the tools used when you issue the make command. There are a
> number of them, all ending in _FOR_TARGET:
>
> CC_FOR_TARGET, AS_FOR_TARGET, LD_FOR_TARGET, RANLIB_FOR_TARGET, AR_FOR_TARGET, NM_FOR_TARGET
>
> e.g. make all-target-newlib CC_FOR_TARGET=i386-elf-gcc AS_FOR_TARGET=i386-elf-as ...
I wonder if newlib should obey --program-prefix, etc.
[if it doesn't already].
Maybe what one wants is --build-program-prefix. Ugh.
More information about the Newlib
mailing list