How do I compile universal binaries of generic Unix programs?
Someone on the Zsh list suggested I use:
make CFLAGS='-arch i386 -arch ppc -arch ppc64' LDFLAGS='${CFLAGS}'
which worked for compiling Zsh, but when I tried to compile Gnu Sed, it failed. Here is the end of the 'make' output:
if gcc -DHAVE CONFIGH -I. -I. -I.. -I../lib -I../intl -I.. -I../lib -I../intl -arch i386 -arch ppc -arch ppc64 -MT getopt1.o -MD -MP -MF ".deps/getopt1.Tpo" -c -o getopt1.o getopt1.c; \
then mv -f ".deps/getopt1.Tpo" ".deps/getopt1.Po"; else rm -f ".deps/getopt1.Tpo"; exit 1; fi
gcc-4.0: -E, -S, -save-temps and -M options are not allowed with multiple -arch flags
make[2]: * http://getopt1.o Error 1
make[1]: * all-recursive Error 1
make: * all Error 2
[1] 75357 exit 2 make CFLAGS='-arch i386 -arch ppc -arch ppc64' LDFLAGS='${CFLAGS}'
%
I tried to Google this, but everything I found talked about the ability of Macs to work on PowerPC or Intel, not HOW to actually compile them.
Any help appreciated.
Thanks
AppleTV, iMac 2.8Ghz, MacBook Core 2 Duo 2.4Ghz, 15" Powerbook 1.5Ghz, Mac OS X (10.5.6)