building a toolchain with gcc4?
Robert P. J. Day
rpjday@mindspring.com
Wed Dec 1 16:19:00 GMT 2004
On Wed, 1 Dec 2004, Dan Kegel wrote:
> Robert P. J. Day wrote:
> > on my shiny new FC3 system, i have both the standard gcc-3.4.2
> > (which i am at the moment using to build a new SH3 toolchain), as
> > well as the bleeding edge preview gcc4 compiler.
> >
> > is there any value to trying to build (just as a test) the same
> > toolchain with gcc4? would it require ugly hacks to the scripts to
> > override the ubiquitous calls to "gcc" with "gcc4"? i've got spare
> > CPU cycles, might as well waste them.
>
> No hacks needed; just make a directory ~/fakebin containing a script
> named gcc that contains
>
> #!/bin/sh
> gcc4 "$@"
>
> mark it executable with
> chmod +x gcc
>
> then run demo-sh3.sh with
> PATH=~/fakebin:$PATH demo-sh3.sh
>
> That overrides gcc just for that one run.
yeah, i thought of that right after the caffeine hit. although it
*would* be cleaner if all invocations of the native gcc weren't
hardcoded and instead used, say, $GCC or $BUILDGCC or something to
make it easier. just a thought. :-)
rday
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list