[CMake] darwin, cmake-2.8, gfortran from fink: option "-arch" not recognized
Daniel Franke
franke.daniel at gmail.com
Thu Jun 10 05:26:55 EDT 2010
Hi all.
I got gcc-4.4.4 for target i386-apple-darwin9.8.0 from fink. First I used
cmake-2.6 (also from fink) and everything worked. Later, after an update to
cmake-2.8 (again, from fink), and trying to rebuild my package, I got:
f951: error: unrecognized command line option "-arch"
As far as I can tell, "-arch" is not an option of FSF GCC. However, the GCC
docs mention:
[http://gcc.gnu.org/onlinedocs/gcc/Darwin-Options.html]
"FSF GCC on Darwin does not create “fat” object files; it will create an
object file for the single architecture that it was built to target. Apple's
GCC on Darwin does create “fat” files if multiple -arch options are used;"
I believe that cmake assumes I have Apple's GCC, not the FSF version. Is there
an option or flag for cmake to avoid passing "-arch" to the compiler?
Thanks
Daniel
More information about the CMake
mailing list