[gccsdk] Problems building crosscompiler
John.Tytgat at aaug.net
Sun Nov 8 14:09:49 PST 2009
In message <mpro.kst8q8040jm8w03d4.lists at stevefryatt.org.uk>
Steve Fryatt <lists at stevefryatt.org.uk> wrote:
> However, things then seem to diverge from the README. Section 3 still
> advises setting GCCSDK_INSTALL_CROSSBIN=/home/riscos/cross/bin and
> prepending this to PATH, which is how version 3 worked. The only problem
> is, ~/cross/bin contains a load of files prefixed arm-unknown-riscos- and so
> this doesn't seem to work (calling gcc as normal results in the standard
> compiler being used, as I'd expect).
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.
John Tytgat, in his comfy chair at home BASS
John.Tytgat at aaug.net ARM powered, RISC OS driven
More information about the gcc