Problem building 64-bit python 2.6.2 on Solaris 10

"Martin v. Löwis" martin at v.loewis.de
Wed Jun 3 02:49:37 EDT 2009


> I was able to compile ctypes with gcc4sparc without many changes to
> the CFLAGS, etc.  I had another weird error, but upgrading to the
> latest gcc4sparc fixed it.  One thing I'm not clear about is how
> extensions are built.  I noticed that my CFLAGS are not being passed
> to gcc when building the extensions, so some of them are failing to
> find the correct includes & libraries.  How does one pass these flags?

The most reliable strategy is to edit Modules/Setup, and uncomment
the modules where you want to pass flags. These will then not be built
through setup.py (but become builtin by default).

Regards,
Martin



More information about the Python-list mailing list