[Python-Dev] python, lipo and the future?
"Martin v. Löwis"
martin at v.loewis.de
Sun Sep 17 20:35:34 CEST 2006
Josiah Carlson schrieb:
> "Martin v. Löwis" <martin at v.loewis.de> wrote:
>> Out of curiosity: how do the current universal binaries deal with this
>> issue?
>
> If I remember correctly, usually you do two completely independant
> compile runs (optionally on the same machine with different configure or
> macro definitions, then use a packager provided by Apple to merge the
> results for each binary/so to be distributed. Each additional platform
> would just be a new compile run.
It's true that the compiler is invoked twice, however, I very much doubt
that configure is run twice. Doing so would cause the Makefile being
regenerated, and the build starting from scratch. It would find the
object files from the previous run, and either all overwrite them, or
leave them in place.
The gcc driver on OSX allows to invoke cc1/as two times, and then
combines the resulting object files into a single one (not sure whether
or not by invoking lipo).
Regards,
Martin
More information about the Python-Dev
mailing list