[gccsdk] Problems building crosscompiler

Steve Fryatt lists at stevefryatt.org.uk
Sun Nov 8 14:32:49 PST 2009


John Tytgat <John.Tytgat at aaug.net> wrote:

> The prefix arm-unknown-riscos- is a standard way these days to indicate
> that this is the cross-compiler for the arm-unknown-riscos- target. It
> would be possible to drop the prefix (one of many configure options) but
> that tends to confuse the build procedure based on autotools unless you
> start massaging its options (and there are projects who need access to the
> host compiler, i.e. gcc, to build a tool needed to build the rest of the
> project).
> 
> For makefiles used for cross compilation, you can use something like:
> 
>   CC := $(wildcard $(GCCSDK_INSTALL_CROSSBIN)/*gcc)
> 
> And use $(CC) for specifying your compiler in the rest of your Makefile.

Thanks (and to Peter) -- that all makes sense.  I was still thinking in the
mindset of calling gcc from the user riscos.

I'll go away and have a play with all this again, and see how far I get.

-- 
Steve Fryatt - Leeds, England

http://www.stevefryatt.org.uk/




More information about the gcc mailing list