Compiling as 32bit on MacOSX

Jason Swails jason.swails at gmail.com
Wed Oct 13 02:45:06 CEST 2010


Try setting the compiler itself as "gcc -m32"

--
Jason Swails
Quantum Theory Project,
University of Florida
Ph.D. Graduate Student
352-392-4032

On Oct 12, 2010, at 8:29 PM, Gregory Ewing <greg.ewing at canterbury.ac.nz> wrote:

> I'm getting my Python environment set up on a new
> Snow Leopard machine, and I'd like to compile everything
> in 32 bit mode for the time being, because some of the
> extensions I need use APIs that aren't available in
> 64 bit.
> 
> Is there some environment variable or config setting
> that will make gcc compile 32 bit binaries by default?
> Setting CFLAGS isn't very reliable, since the build
> systems of some libraries don't seem to take notice
> of it.
> 
> -- 
> Greg
> -- 
> http://mail.python.org/mailman/listinfo/python-list



More information about the Python-list mailing list