TODO get working.
Official docs: https://gcc.gnu.org/install/build.html "Building a cross compiler" section.
Official wiki: https://gcc.gnu.org/wiki/Building_Cross_Toolchains_with_gcc
3 parameters identify the cross compiler: http://wiki.osdev.org/Target_Triplet
TODO: list all possible targets:
- https://gist.github.com/roxlu/4637059
- https://gcc.gnu.org/install/specific.html
- http://wiki.osdev.org/GCC_Cross-Compiler
Some samples:
Ubuntu 16.04:
arm-linux-gnueabi-: Ubuntu 16.04binutils-arm-linux-gnueabi,binutils-arm-linux-gnueabihfpackagesarm-linux-gnueabihf-: Ubuntu 16.04gcc-arm-linux-gnueabihfarm-linux-androidabi-: Android NDK 16arm-none-eabi-: Ubuntu 16.04gcc-arm-none-eabipackage. Suitable to compile bare metal code that does not link to libc.x86_64-linux-gnu-: Ubuntu 16.04gccpackage