I am on the OSX snow leopard and am using macports for newer versions of gcc.
What is the meaning of the -arch_only compiler flag for gcc? I am confused as to what it does (I know that "-arch x86_64" does a 64-bit binary, but more on that), and why the support for it seems to vary between versions of gcc.
macports gcc 4.4 supports it, macports 4.6-4.8 does not and gives this error:
gcc-mp-4.8: error: unrecognized command line option '-arch_only'
In this regard, support for "-arch" seems to change between versions. 4.4 supports it, 4.6 does not, 4.7 and 4.8.
source share