Apple specific options: patch to include them in the current release gcc?

Stan Shebs shebs@apple.com
Fri Jan 28 05:09:00 GMT 2005


Remy X.O. Martin wrote:

>Hello,
>
>Apple has added a number of options to their gcc compilers which are quite necessary when building Cocoa/Carbon applications, and esp. when used with XCode; among others, -F <framework path>, -framework <name> and a few more. The framework related options *can* be emulated, but that's quite tricky.
>
>Is anyone here aware of a set of patches that would introduce the (most important) Apple-specific options into gcc? I reckon there's a reason they're not included in the mainstream gcc releases, but I think (without having checked) that Apple's version is available from OpenDarwin.org . In that case, patches *might* exist...
>
"Most important" has multiple interpretations. The full set of
Apple's changes is rather large, but many of the bits are only
needed to build OS X components, and not needed for applications
using OS X APIs. As Mike mentioned, apple-ppc-branch in CVS is
the compiler we're planning to have in Tiger, but at this point
I think it only builds on Tiger; if you want a Panther compiler
out of it, some configury work will likely be needed, or an
updated assembler/linker.

OpenDarwin would be a good place to get the exact Panther GCC.

I don't think anybody knows the exact set of patches that
current FSF GCC would need to build a standard test app like
AppearanceSample on Panther, but it's probably not that many;
many of the flags that Xcode passes, such as -fpascal-strings
or -fasm-blocks, could even be accepted but ignored.

Stan




More information about the Gcc mailing list