GCC cross-compiler on mac os
Posted: Fri Feb 03, 2012 8:25 pm
The GCC cross-compiler page gives advice about building GCC/binutils on mac os, specifically it says to change the default $(CC) from apple's llvm-gcc to gcc-4.2 in /usr/bin.
However, as of Mac OS 10.7 and Xcode 4.2, Apple doesn't seem to provide a 'regular' version of gcc - instead they provide clang and a version of llvm that may (or may not, I haven't checked) be the same as their own, meaning that it might not support cross compilation.
Has anyone had any luck building a GCC cross compiler on mac os with the new tools? I've been having a look at using LLVM to compile my kernel instead of GCC, but so far it's looking a bit messy.
If anyone's found a good toolchain for kernel dev on mac, that might be worth putting on the wiki...
However, as of Mac OS 10.7 and Xcode 4.2, Apple doesn't seem to provide a 'regular' version of gcc - instead they provide clang and a version of llvm that may (or may not, I haven't checked) be the same as their own, meaning that it might not support cross compilation.
Has anyone had any luck building a GCC cross compiler on mac os with the new tools? I've been having a look at using LLVM to compile my kernel instead of GCC, but so far it's looking a bit messy.
If anyone's found a good toolchain for kernel dev on mac, that might be worth putting on the wiki...