Compiling as 32bit on MacOSX

Ned Deily nad at acm.org
Wed Oct 13 05:10:09 EDT 2010


In article <8hl75sF6jtU1 at mid.individual.net>,
 Gregory Ewing <greg.ewing at canterbury.ac.nz> wrote:
> 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?

You'll also need to specify the appropriate SDK using Apple's gcc 
-sysroot option.

-- 
 Ned Deily,
 nad at acm.org




More information about the Python-list mailing list