[Pythonmac-SIG] Wiki Formatting
ronaldoussoren at mac.com
Sat Apr 1 07:55:50 CEST 2006
On 31-mrt-2006, at 0:38, Christopher Barker wrote:
> Ronald Oussoren wrote:
>> I'd prefer not to have seperate Intel and PPC binaries. Would merging
>> Intel and PPC builds be of any use?
> Yes, though I'm not sure what you mean by merging.
> Do you mean lipo'ing them together? or having separate builds in
> one *.mpkg?
The former, to seperate builds in one package wouldn't be to usefull as
you mention below.
> Ideally, we could get it all truly Universal, then one could build
> Universal Py2App bundles with it and all.
> I think the big trick with SciPy is the Fortran components. SciPy,
> Fortran and gcc 4 have been having trouble for a while. If that's
> I have no idea about how to build Universal binaries with gfortran or
> g95. Does anyone know?
IIRC both are frontends for GCC. You could probably build them using
Apple's version of GCC (downloadable from Apple's opensource site)
get the multiple-arch bit for free. The other alternative is a script
compiles using a compiler for intel, then with a compiler for ppc and
uses lipo to merge the two.
> While I'm on the topic, I'm looking into building Universal
> binaries of
> some other packages that depend on other libs. For instance,
> depends on libpng and libfreetype. In the past, I've built static libs
> of those, and then linked MPL against them, getting a nice
> self-contained package. However, I have no idea how I would go about
> building Universal static libs, or two sets of libs, or????
That depends :-) For my universal python build you definitely want to
up with Universal static libs. If configure doesn't check for CPU
(like sizeof(int) and byteorder) you can most likely get away with
'CFLAGS="-arch i386 -arch ppc -isysroot ..." LDFLAGS="-arch i386 -
arch ppc -isysroot ..."' to the
arguments of configure. Otherwise you either have to patch the
we did for python), or create two builds and them lipo them together.
I have a script to do the latter somewhere.
> Any suggestions?
> Christopher Barker, Ph.D.
> NOAA/OR&R/HAZMAT (206) 526-6959 voice
> 7600 Sand Point Way NE (206) 526-6329 fax
> Seattle, WA 98115 (206) 526-6317 main reception
> Chris.Barker at noaa.gov
> Pythonmac-SIG maillist - Pythonmac-SIG at python.org
More information about the Pythonmac-SIG