Compiling as 32bit on MacOSX

Gregory Ewing greg.ewing at canterbury.ac.nz
Wed Oct 13 03:58:49 EDT 2010


Jason Swails wrote:
> Try setting the compiler itself as "gcc -m32"

You mean by setting CC? That's a cunning plan -- I'll
give it a try.

On a related note, according to the man page for Apple's
gcc, you're supposed to be able to use both '-arch i386'
and '-arch x86_64' at the same time and get fat binaries.
That would actually be my preferred option, because then
I wouldn't have to go back and rebuild all my libraries
if I decide to switch to 64 bit in the future.

But I can't seem to get it to work -- it just uses the
last architecture specified. Has anyone successfully done
this? Is there some trick to it that I've missed?

-- 
Greg



More information about the Python-list mailing list