Anonymous user
Preparing GCC Build: Difference between revisions
Clean up macOS instructions a bit but honestly this is a mess
[unchecked revision] | [unchecked revision] |
m (Update Gentoo notes) |
(Clean up macOS instructions a bit but honestly this is a mess) |
||
Line 157:
Portage uses overlays to store packages that are not part of the original package management. Crossdev needs one overlay where it can store its binutils and gcc packages before building them. You can configure one properly, or you can use PORTDIR_OVERLAY to point at where it should keep its package manager files. Using PORTDIR_OVERLAY is not a good idea with existing overlays, but by then you should know how you have personally set them up earlier anyway and how to do it properly.
===
The makefiles of Binutils and GCC use the <source lang="make" enclose="none">$(CC)</source> variable to invoke the compiler. On OS X, this resolves to <source lang="text" enclose="none">
<source lang="bash">
# This is only necessary for OS X users running 10.7 or below.
Line 174 ⟶ 172:
</source>
You
'''Note for Lion users:''' If you're on Lion (or above) chances are that you don't have the "real" GCC since Apple removed it from the Xcode package, but you can still install it. You can do it via Homebrew or by compiling from source, both are perfectly described on [http://apple.stackexchange.com/a/38247 a StackExchange answer].
Line 180 ⟶ 178:
'''Note for Maverick users:''' You can build binutils-2.24 and gcc-4.8.3 (possible other version) with Xcode 5.1.1. Note that building GCC with LLVM is not officially supported and may cause interesting bugs, if you are willing to take this risk and save time building host-gcc just to compile a cross-gcc, follow this.
Install GMP, MPFR, Mpc with [http://http://www.macports.org/ MacPorts].
sudo port install gmp mpfr libmpc
Line 194 ⟶ 193:
--with-gmp=/usr --with-mpc=/opt/local --with-mpfr=/opt/local
=== Windows Users ===
|