Compiling for Linux 32 and Linux 64 on MacOS X
You can find here older releases of cross compilers for i386 Linux
This is a cross compilation of GCC on Mac OS X.
A package installs all files in the given installation directory. Within the installed directory, the contents.txt
file contains the detail of cross-compiled archives.
All tools are located in the bin
sub directory. You can add this path to your PATH
shell variable, or invoke the tools with their full path name: for example /usr/local/gcc-4.5.2-for-linux32/bin/i586-pc-linux-gcc
for gcc.
For better portability of Linux tools built with theses cross compilation chains, invoke the linker with the -static
option, for example:
GCC 4.8.1
Theses packages have been built with BINUTILS 2.23.2, GCC 4.8.1, GMP 4.3.2, MPC 0.8.1, MPFR 2.4.2 and GLIBC 2.11.1, for Mac OS X 10.6 and later.
32-Bit Linux Binaries for Mac Intel
64-Bit Linux Binaries for Mac Intel
Build scripts for Mac Intel
GCC 4.8.0
Theses packages have been built with BINUTILS 2.23.2, GCC 4.8.0, GMP 4.3.2, MPC 0.8.1, MPFR 2.4.2 and GLIBC 2.11.1, for Mac OS X 10.6 and later.
32-Bit Linux Binaries for Mac Intel
64-Bit Linux Binaries for Mac Intel
GCC 4.7.2
Theses packages have been built with BINUTILS 2.23.1, GCC 4.7.2, GMP 4.3.2, MPC 0.8.1, MPFR 2.4.2 and GLIBC 2.11.1, for Mac OS X 10.6 and later.
32-Bit Linux Binaries for Mac Intel
64-Bit Linux Binaries for Mac Intel
GCC 4.5.2
32-Bit Linux Binaries for Mac Intel
Version | Corresponds to… | Compilers | Installer to download | Installation directory |
3 (april 2011) | gcc 4.5.2, glibc 2.11.1 | C, C++ | gcc-4.5.2-for-linux32.dmg (65.2 MB) | /usr/local/gcc-4.5.2-for-linux32/ |
64-Bit Linux Binaries for Mac Intel
Version | Corresponds to… | Compilers | Installer to download | Installation directory |
3 (april 2011) | gcc 4.5.2, glibc 2.11.1 | C, C++ | gcc-4.5.2-for-linux64.dmg (71.7 MB) | /usr/local/gcc-4.5.2-for-linux64/ |