I'm trying to build a universal (ppc and i386) libfreetype 2.1.12 (or any reasonably recent version) on my PPC Mac (10.4.7 with XCode 2.4). I can built something, but it's always PPC-only.
I started from Apple Tech Note 2137: <http://developer.apple.com/technotes/tn2005/tn2137.html> but read elsewhere that their suggestion to set LDFLAGS is wrong and will cause the build to fail. So I've been trying this (which does work for building a universal libpng, but not, alas, libfreetype): $ CFLAGS="-O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc" \ ./configure --disable-dependency-tracking $ make I'm not savvy about this stuff, but naively the compile steps appeared OK (the CFLAGS options were present). $ make ./builds/unix/libtool --mode=compile gcc -pedantic -ansi -I/Users/rowen/Desktop/freetype-2.2.1/objs -I./builds/unix -I/Users/rowen/Desktop/freetype-2.2.1/include -c -Wall -O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -DFT_CONFIG_OPTION_SYSTEM_ZLIB -DFT_CONFIG_CONFIG_H="<ftconfig.h>" -DFT2_BUILD_LIBRARY -DFT_CONFIG_MODULES_H="<ftmodule.h>" -o /Users/rowen/Desktop/freetype-2.2.1/objs/ftsystem.lo builds/unix/ftsystem.c gcc -pedantic -ansi -I/Users/rowen/Desktop/freetype-2.2.1/objs -I./builds/unix -I/Users/rowen/Desktop/freetype-2.2.1/include -c -Wall -O -g -isysroot /Developer/SDKs/MacOSX10.4u.sdk -arch i386 -arch ppc -DFT_CONFIG_OPTION_SYSTEM_ZLIB "-DFT_CONFIG_CONFIG_H=<ftconfig.h>" -DFT2_BUILD_LIBRARY "-DFT_CONFIG_MODULES_H=<ftmodule.h>" builds/unix/ftsystem.c -fno-common -DPIC -o /Users/rowen/Desktop/freetype-2.2.1/objs/.libs/ftsystem.o but the result is clearly ppc-only (no data for i386 is listed): $ otool -hv -arch all objs/.libs/libfreetype.dylib objs/.libs/libfreetype.dylib: Mach header magic cputype cpusubtype filetype ncmds sizeofcmds flags MH_MAGIC PPC ALL DYLIB 8 1180 DYLDLINK SUBSECTIONS_VIA_SYMBOLS $ Any hints? -- Russell _______________________________________________ Freetype mailing list Freetype@nongnu.org http://lists.nongnu.org/mailman/listinfo/freetype