Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ukdmbfan

macrumors newbie
Original poster
Sep 17, 2008
5
0
I'm trying to compile the freetype library on Leopard for use as a Universal Binary library, however I'm having some make trouble.

I'm trying to pass options to the CC environment variable, but that always seems to result in a "libtool: link: `/Users/matt/Workspace/freetype/freetype-2.3.7/objs/ftsystem.lo' is not a valid libtool object" error, after which make fails.

This is the result of doing a simple:

./configure
make "CC=cc"

OR

./configure
make "CC=cc -arch i386"

Just doing a configure and make works ok (without CC) but I can only ever compile an i386 library this way. Configuring the the ppc build/host system options, and then doing make "CC=cc -arch ppc" results in the exact same error. Why doesn't it like cc?
 

ukdmbfan

macrumors newbie
Original poster
Sep 17, 2008
5
0
I was starting to get that feeling considering other things were compiling fine with the exact same process. I had a feeling that I'd cross-compiled freetype before, but I might not have done. Might have to dig up a G4 Mini from eBay then, as I don't have a (working) PPC machine :)

Thanks for your help.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.