Oct 31, 2005 22:08
This may make no sense to anyone, but I'm glad I finally figured out what's going on.
$ cat hello.c
#include
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 program text
hello.fat: Mach-O fat file with 2 architectures
hello.fat (for architecture ppc): Mach-O executable ppc
hello.fat (for architecture i386): Mach-O executable i386
hello.ppc: Mach-O executable ppc
$ ./hello.fat
Hello, World.
tada :)