First off, you must have a gcc that is able to cross-compile. This may well require a complete rebuild of your toolchain (gcc, binutils, headers etc...) which you may want to install locally to avoid overwriting your native gcc.
Second, to do the actual cross compile, I think all that is necessary is to define your chost flags to your target platform.
I suggest reading the gcc docs, or searching for a tutorial on setting up gcc to cross-compile.
|