Preparing GCC Build: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content added Content deleted
m (Remove spurious GNU)
m (Update Gentoo notes)
Line 149: Line 149:
This will install a GCC cross-compiler into a "slot", i.e. alongside already-existing compiler versions. You can install several cross-compilers that way, simply by changing target designations. An unfortunate downside is that it will also pull in gentoo patches and pass additional configure options that differ from the official [[GCC Cross-Compiler]] setup, and they might behave differently.
This will install a GCC cross-compiler into a "slot", i.e. alongside already-existing compiler versions. You can install several cross-compilers that way, simply by changing target designations. An unfortunate downside is that it will also pull in gentoo patches and pass additional configure options that differ from the official [[GCC Cross-Compiler]] setup, and they might behave differently.


After the compilation ran, you can now use your cross-compiler by calling <target>-gcc. You can also use gcc-config to toggle between compiler versions should you need to do so. Don't replace your system compiler with a cross-compiler however. The package manager will also suggest updates as soon as they become available.
After the compilation ran, you can now use your cross-compiler by calling <target>-gcc. You can also use gcc-config to toggle between compiler versions should you need to do so. Don't replace your system compiler with a cross-compiler. The package manager will also suggest updates as soon as they become available.


You can uninstall the cross-compiler by calling ''crossdev --clean <target>''. Read the [http://www.gentoo.org/proj/en/base/embedded/cross-development.xml cross-development] document for additional information.
You can uninstall the cross-compiler by calling ''crossdev --clean <target>''. Read the [http://www.gentoo.org/proj/en/base/embedded/cross-development.xml cross-development] document for additional information.