[cairo] Compile Mac OS X universal binary of cairo

mpsuzuki at hiroshima-u.ac.jp mpsuzuki at hiroshima-u.ac.jp
Tue Feb 6 20:49:00 PST 2007


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.

Regards,
mpsuzuki


On Tue, 06 Feb 2007 14:31:58 -0500
Michael Sweet <mike at easysw.com> wrote:

> Carl Worth wrote:
> > On Tue, 06 Feb 2007 11:03:19 -0500, Michael Sweet wrote:
> >> This sort of problem is exactly why I advocated against a configure-
> >> time endian check when this code was added
> > 
> > What do you suggest as a replacement?
> > 
> >> and then tried to get at least a special case made for Mac OS X.
> > 
> > What would the special case look like?
> 
> Here is the original thread where I mentioned this:
> 
>      http://lists.freedesktop.org/archives/cairo/2006-October/008285.html
> 
> and my example (which would just need to be modified accordingly
> for the stuff you are defining for word order):
> 
>      http://lists.freedesktop.org/archives/cairo/2006-October/008292.html
> 
> Bill Spitzak also posted a response indicating that __BIG_ENDIAN__
> is defined when compiling PPC or PPC64:
> 
>      http://lists.freedesktop.org/archives/cairo/2006-October/008297.html
> 
> which would reduce the conditional code to:
> 
>      #ifdef __BIG_ENDIAN__
>      ... force big-endian usage ...
>      #elif defined(__APPLE__)
>      ... force little-endian usage ...
>      #endif
> 
> Ideally, you'd just include that in the autoconf-generated config
> header that defines the word order stuff, and the compiler would
> do the rest.  The code would work for both "fat" builds as well
> as traditional non-fat builds that are later merged with lipo, and
> other platforms would happily ignore it and work as they do now.
> 
> -- 
> ______________________________________________________________________
> Michael Sweet, Easy Software Products           mike at easysw dot com
> Internet Printing and Document Software          http://www.easysw.com
> _______________________________________________
> cairo mailing list
> cairo at cairographics.org
> http://cairographics.org/cgi-bin/mailman/listinfo/cairo


More information about the cairo mailing list