[cairo] Speeding up _cairo_fixed_from_double

Vladimir Vukicevic vladimir at pobox.com
Fri Oct 27 08:20:48 PDT 2006


On 10/26/06, Michael Sweet <mike at easysw.com> wrote:
> Vladimir Vukicevic wrote:
> > Anyone who's building a fat binary effectively needs to go through a
> > build twice -- including the full configure stage, once for each arch &
> > SDK.  If someone has this optimized down to just doing a single build
> > that builds both at the same time, great, but then making sure this case
> > works is on their shoulders.  With a compile-time endian check, cairo
> > will compile and run correctly when built for either the x86 or the ppc
> > architecture, and that's all that's required for universal binaries.
>
> Building twice sucks, and if you have a configure test you'll need to
> actually build on two different systems and use lipo to merge the
> binaries after the fact.

Huh?  Your configure test will use the supplied compiler, which will
be generating ppc binaries that configure will execute to test.
They'll execute under Rosetta, and will give you the correct response.
 You would have to use lipo to merge the resulting binary, but that's
a pretty simple step.

We build mozilla in this exact way, running through configure twice
(once for each target gcc/arch/etc.), and even building with a
different SDK for ppc vs. x86, and then lipo the resulting stuff
together.

    - Vlad


More information about the cairo mailing list