Posted on October 31, 2005 at 10:08 pm
Creating fat binaries
This may make no sense to anyone, but I’m glad I finally figured out what’s going on.
$ cat hello.c
#include <stdio .h>
int main()
{
printf("Hello, World.");
return 0;
}
$ gcc -b powerpc-apple-darwin8 hello.c -o hello.ppc
$ gcc -b i686-apple-darwin8 hello.c -o hello.686
$ lipo -create -output hello.fat hello.ppc hello.686
$ file hello*
hello.686: Mach-O executable i386
hello.c: ASCII C [...]