[cairo] Compile Mac OS X universal binary of cairo

Michael Sweet mike at easysw.com
Wed Feb 7 08:13:00 PST 2007


Daniel Amelang wrote:
> On 2/6/07, mpsuzuki at hiroshima-u.ac.jp <mpsuzuki at hiroshima-u.ac.jp> wrote:
>> Hi,
>>
>> If you want to execute ./configure only at once, and start
>> to build cairo library for multiple architecture with
>> incompatible endian - you should include Carbon/Carbon.h,
>> and use macro "TARGET_RT_BIG_ENDIAN" or "TARGET_RT_LITTLE_ENDIAN".
>> Both macros are set to appropriate value, for each architecture,
>> automatically. You don't have to refer the value detected by
>> configure script.
> 
> According to the apple docs (TargetConditionals.h):
> 
> "TARGET_RT_LITTLE_ENDIAN - Generated code uses little endian format for 
> integers
> TARGET_RT_BIG_ENDIAN    - Generated code uses big endian format for 
> integers"
> 
> The main issue here is the word endianess of the floats, not the
> integers. There are no available macros defined wrt float word
> endianess, which is different than integer byte endianess on certain
> systems. Hence our own FLOAT_WORDS_BIGENDIAN configure macro.

Fortunately, Mac OS X uses the same word order for all multi-byte
integers and floats.

-- 
______________________________________________________________________
Michael Sweet, Easy Software Products           mike at easysw dot com
Internet Printing and Document Software          http://www.easysw.com


More information about the cairo mailing list