[cairo] Compile Mac OS X universal binary of cairo
daniel.amelang at gmail.com
Tue Feb 6 23:17:38 PST 2007
On 2/6/07, mpsuzuki at hiroshima-u.ac.jp <mpsuzuki at hiroshima-u.ac.jp> wrote:
> 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.
More information about the cairo