This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: Setting up a build tree for a new architecture
- From: Doug Evans <dje at transmeta dot com>
- To: "J. Johnston" <jjohnstn at redhat dot com>
- Cc: "H. Peter Anvin" <hpa at zytor dot com>, newlib <newlib at sources dot redhat dot com>
- Date: Tue, 9 Jul 2002 10:41:02 -0700 (PDT)
- Subject: Re: Setting up a build tree for a new architecture
- References: <3D2A2D31.1090205@zytor.com><3D2A5527.8A91525E@redhat.com>
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.