diff setup.py @ 39422:ddea4d37c83c legacy-trunk

Add some commentary on -mimpure-text.
author Martin v. Löwis <martin@v.loewis.de>
date Wed, 09 Aug 2006 23:42:18 +0000
parents b7eab1c18e9d
children afabffd562e9 98e900499043
line wrap: on
line diff
--- a/setup.py	Wed Aug 09 20:34:46 2006 +0000
+++ b/setup.py	Wed Aug 09 23:42:18 2006 +0000
@@ -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',