[Python-checkins] r51184 - python/trunk/setup.py

martin.v.loewis python-checkins at python.org
Thu Aug 10 01:42:18 CEST 2006


Author: martin.v.loewis
Date: Thu Aug 10 01:42:18 2006
New Revision: 51184

Modified:
   python/trunk/setup.py
Log:
Add some commentary on -mimpure-text.


Modified: python/trunk/setup.py
==============================================================================
--- python/trunk/setup.py	(original)
+++ python/trunk/setup.py	Thu Aug 10 01:42:18 2006
@@ -1369,6 +1369,14 @@
 ##            extra_link_args.extend(['-read_only_relocs', 'warning'])
 
         elif sys.platform == 'sunos5':
+            # XXX This shouldn't be necessary; it appears that some
+            # of the assembler code is non-PIC (i.e. it has relocations
+            # when it shouldn't. The proper fix would be to rewrite
+            # the assembler code to be PIC.
+            # This only works with GCC; the Sun compiler likely refuses
+            # this option. If you want to compile ctypes with the Sun
+            # compiler, please research a proper solution, instead of
+            # finding some -z option for the Sun compiler.
             extra_link_args.append('-mimpure-text')
 
         ext = Extension('_ctypes',


More information about the Python-checkins mailing list