> 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 -- http://mail.python.org/mailman/listinfo/python-list