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:
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 
 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 
builds/unix/ftsystem.c  -fno-common -DPIC -o 

but the result is clearly ppc-only (no data for i386 is listed):
$ otool -hv -arch all objs/.libs/libfreetype.dylib 
Mach header
      magic cputype cpusubtype   filetype ncmds sizeofcmds      flags
   MH_MAGIC     PPC        ALL      DYLIB     8       1180 DYLDLINK 

Any hints?

-- Russell

Freetype mailing list

Reply via email to