Which GCC does macports use?

Ryan Schmidt ryandesign at macports.org
Mon Apr 5 13:54:55 PDT 2010

On Apr 5, 2010, at 14:47, Ctalk Project wrote:

> Now that you mention it, though, I have several other questions, even though maybe a bit off topic here - I seem to recall that Apple has (or had) a site for developers to test-compile for different OS X versions and architectures.  Has anybody managed to find the site and/or tried builds there?

Never heard of it.

> Also, just how patched is the Xcode compiler?

Apple's patches are freely available, I believe. See http://opensource.apple.com

> We do test on a lot of GCC versions around here - has anyone tried this universal binary code generation from a generic GCC release?

Apple's patches allow gcc to accept multiple simultaneous arch flags, e.g. "gcc -arch i386 -arch ix86_64" to generate both at the same time. Standard gcc does not have this ability; instead, you have to "gcc -arch i386", then "gcc -arch x86_64", then "lipo" manually. For ports that require a non-Apple gcc compiler, universal builds are probably possible using the muniversal portgroup, which does this build-and-lipo method.

More information about the macports-users mailing list