[Python-checkins] r51113 - in python/trunk: Misc/NEWS setup.py

Thomas Heller theller at python.net
Wed Aug 9 16:43:37 CEST 2006


Martin v. Löwis schrieb:
> thomas.heller schrieb:
>> Fix #1530448 - fix ctypes build failure on solaris 10.
>> 
>> The '-mimpure-text' linker flag is required when linking _ctypes.so.
> 
> This is probably not the full truth. -mimpure-text is only supported
> in gcc, so this won't work with the system compiler
> (SunPro/Forte/Whatever). Also, usage of -mimpure-text typically just
> hides some other, deeper problem. For C code, it indicates that
> -fPIC/-KPIC was missing somewhere. IIRC, this problem originated from
> assembler code, and I'm uncertain what the right fix is.
> 
> Anyway, this is probably an improvement, so it should stay until
> somebody comes along with a real solution.

I suggest you add something like this text to setup.py, where the
'-mimpure-text' flag is used.

Thanks,
Thomas



More information about the Python-checkins mailing list