30 Oct
2009
30 Oct
'09
8:15 p.m.
Mac OS X projects usually use the same set of source files for all of the multiple machine architectures that the project is be built for. This can cause problems when a configure-time check doesn't match the target architecture. An example that has come up in the past is configure-time detection of endianness. If configure was run on a PowerPC machine, the generated config.h would indicate that the machine was big-endian:
AC_C_BIGENDIAN supports universal binaries. You just have to run ./configure CC='gcc -arch i686 -arch ppc' (or anyway use the appropriate GCC flags). Are there any other cases? Paolo