[CMake] Re: OS X Universal Binary follow up

William A. Hoffman billlist at nycap.rr.com
Thu Dec 22 18:03:13 EST 2005


At 05:41 PM 12/22/2005, E. Wing wrote:
>> One thing you could try is to use Xcode to build a universal binary.
>> Then look at the verbose build output, by running xcodebuild >& build.log
>> from the command line.   Then we can find out exactly what flags to use.
>
>Attached is the build.log from their BSD command line app Xcode
>Template ("hello world" program).
>
>Also, this just came up on the Xcode mailing list. Somebody was having
>issues with sysroot and syslibroot. There is a response has some
>information you might not find elsewhere:
>
>http://lists.apple.com/archives/Xcode-users/2005/Dec/msg00524.html
>
>Thanks,
>Eric



So, it looks like they build main.o twice.  Once for ppc, and once for i386.
Then the link a UniversalBinary for each ppc and i386.
Next they run lipo and pass it both binaries, which creates the final
executable.  


-Bill



More information about the CMake mailing list