User Tools

Site Tools


compiling_for_linux

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.

Note

For better portability of Linux tools built with theses cross compilation chains, invoke the linker with the -static option, for example:

  • /usr/local/gcc-4.5.2-for-linux32/bin/i586-pc-linux-gcc -static for C linking;
  • /usr/local/gcc-4.5.2-for-linux32/bin/i586-pc-linux-g++ -static for C++ linking.

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

Version Compilers Installer to download Installation directory
6 (october 2013) C, C++ gcc-4.8.1-for-linux32.dmg (84.4 MB) /usr/local/gcc-4.8.1-for-linux32/

64-Bit Linux Binaries for Mac Intel

Version Compilers Installer to download Installation directory
6 (october 2013) C, C++ gcc-4.8.1-for-linux64.dmg (92.4 MB) /usr/local/gcc-4.8.1-for-linux64/

Build scripts for Mac Intel

Version Package
6 (october 2013) gcc-4.8.1-for-linux32-linux64.tbz (42.3 MB)

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

Version Compilers Installer to download Installation directory
5 (april 2013) C, C++ gcc-4.8.0-for-linux32.dmg (80.3 MB) /usr/local/gcc-4.8.0-for-linux32/

64-Bit Linux Binaries for Mac Intel

Version Compilers Installer to download Installation directory
5 (april 2013) C, C++ gcc-4.8.0-for-linux64.dmg (86.9 MB) /usr/local/gcc-4.8.0-for-linux64/

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

Version Compilers Installer to download Installation directory
4 (march 2013) C, C++ gcc-4.7.2-for-linux32.dmg (81.4 MB) /usr/local/gcc-4.7.2-for-linux32/

64-Bit Linux Binaries for Mac Intel

Version Compilers Installer to download Installation directory
4 (march 2013) C, C++ gcc-4.7.2-for-linux64.dmg (86.7 MB) /usr/local/gcc-4.7.2-for-linux64/

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/
compiling_for_linux.txt · Last modified: 2013/10/12 21:27 by pm