Comment Re:Apple's compiler wold be nice (cross-compiling) (Score 1) 255
I've copied most of this from a reply I made to the Phoronix thread.
There's a lot of work involved in going from Apple's source releases to working cross compilers and then a lot more work involved in going from working cross compilers to well tested ones that generate the same binary code that the native versions generate (and allow things like code-signing) You can use my fork of toolchain4 to avoid this work if you want:
Binaries:
https://mingw-and-ndk.googlecode.com/files/multiarch-darwin11-cctools127.2-gcc42-5666.3-llvmgcc42-2336.1-Linux-120724.tar.xz
https://mingw-and-ndk.googlecode.com/files/multiarch-darwin11-cctools127.2-gcc42-5666.3-llvmgcc42-2336.1-Windows-120614.7z
Source:
https://github.com/mingwandroid/toolchain4
Using these you can build both iOS and OSX software using either gcc or llvmgcc on either Linux or Windows. You need to bring your own SDK of course. I've not yet looked into the feasibility of building Darwin libc or any of the other system libs (nor the legality of distributing these). I think there's definitely a gap for the OSX/iOS equivalent of MinGW-w64.
My build scripts and patches are a bit untidy, I'm currently engaged in an effort to merge this work into crosstool-ng which will force me to clean things up.
There's a lot of work involved in going from Apple's source releases to working cross compilers and then a lot more work involved in going from working cross compilers to well tested ones that generate the same binary code that the native versions generate (and allow things like code-signing) You can use my fork of toolchain4 to avoid this work if you want:
Binaries:
https://mingw-and-ndk.googlecode.com/files/multiarch-darwin11-cctools127.2-gcc42-5666.3-llvmgcc42-2336.1-Linux-120724.tar.xz
https://mingw-and-ndk.googlecode.com/files/multiarch-darwin11-cctools127.2-gcc42-5666.3-llvmgcc42-2336.1-Windows-120614.7z
Source:
https://github.com/mingwandroid/toolchain4
Using these you can build both iOS and OSX software using either gcc or llvmgcc on either Linux or Windows. You need to bring your own SDK of course. I've not yet looked into the feasibility of building Darwin libc or any of the other system libs (nor the legality of distributing these). I think there's definitely a gap for the OSX/iOS equivalent of MinGW-w64.
My build scripts and patches are a bit untidy, I'm currently engaged in an effort to merge this work into crosstool-ng which will force me to clean things up.