Preparing GCC Build: Difference between revisions

m
Reverted edits by Bluemoon (talk) to last revision by Max
[unchecked revision][unchecked revision]
(Added note for maverick and build with xcode directly.)
m (Reverted edits by Bluemoon (talk) to last revision by Max)
Line 67:
 
'''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].
 
'''Note for Maverick users:''' You can build binutil-2.24 and gcc-4.8.3 (possible other version) with xcode 5.1.1.
 
Install GMP, MPFR, MPC with [http://http://www.macports.org/ macport].
sudo port install gmp mpfr libmpc
 
../binutils-2.24/configure --prefix=$PREFIX \
--target=$TARGET \
--enable-interwork --enable-multilib \
--disable-nls --disable-werror
 
../gcc-4.8.3/configure --prefix=$PREFIX \
--target=$TARGET \
--disable-nls \
--enable-language=c,c++ --without-headers \
--enable-interwork --enable-multilib \
--with-gmp=/usr --with-mpc=/opt/local --with-mpfr=/opt/local
 
*Note that there is issue with port's gmp, we use the version from mac os x from /usr instead.
 
=== Windows Users ===
12

edits