Re: i386

Oli Larkin <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
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.
> 

-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.