[Pythonmac-SIG] building universal binaries

Kevin Ollivier kevino at theolliviers.com
Fri Jan 27 03:28:01 CET 2006

Hi Ronald,

On Jan 26, 2006, at 12:48 AM, Ronald Oussoren wrote:


> I'm (very slowly) playing around with adding '-arch ppc -arch i386'
> to the build flags and building on an intel host. That way you won't
> have to use SDKs, which makes it less likely that configure picks up
> other information than the actual compile (not that there should be
> any differences if you use the 10.4u SDK).
> With some effort it should be possible to build a version of python
> that will run on 10.3 as well. As far as python is concerned the
> differences between 10.3 and 10.4 seem to be fairly small. The reason
> I'd like to do this instead of merging a build-on-10.3 PPC version
> and a build-on-10.4 intel version is that the latter would contain
> small incompatibilities between the intel and ppc version (some
> scripts would work on intel but not on ppc).

IMHO, what would be cool is to allow the user to pass the SDK in as  
some sort of configure flag or maybe a shell variable, something like:

./configure <flags> MACOSX_SDK=/my/path/to/SDK

This, along with the addition of the -arch i386 -arch ppc flags would  
be enough to enable someone to write a script to create a Panther- 
compatible Universal build. Which I'm pretty sure someone will do  
sooner or later. :-)



More information about the Pythonmac-SIG mailing list