[cairo] i386
Oli Larkin
olilarkin at googlemail.com
Fri Dec 21 05:49:48 PST 2012
thanks ryan. that worked
oli
On 20 Dec 2012, at 23:31, Ryan Schmidt wrote:
>
> On Dec 20, 2012, at 06:33, Oli Larkin wrote:
>
>> I-m trying to build a fat 32/64bit cairo static library on OSX 10.6 but trying to do an i386 build fails. Looks like Coregraphics framework is not linked properly
>>
>> can anyone help? A 64bit build works. Is there an easy way to make a fat binary without manually lipo-ing them together?
>>
>> cheers.
>>
>> oli
>>
>>
>>
>> ./configure --build=i386
>
> I'm not sure what this "--build=i386" flag is; the way to build a program for a different architecture is to pass "-arch" flags in the CFLAGS, CXXFLAGS and LDFLAGS at configure time:
>
> CFLAGS="-arch i386" CXXFLAGS="-arch i386" LDFLAGS="-arch i386" ./configure
>
> To build a universal binary of cairo in MacPorts, we build for each arch separately and then lipo them together. (So if you just want a universal binary of cairo, you can certainly use MacPorts to get it: "sudo port install cairo +universal".) The reason we switched to using lipo at the time was an endian check in the configure script which the cairo developers at the time did not wish to change:
>
> https://trac.macports.org/ticket/13622
>
> Cairo has evolved in the five years since then so I don't know what the current situation is when using the simpler method of specifying all -arch flags at once.
>
More information about the cairo
mailing list