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

thomas.heller python-checkins at python.org
Fri Aug 4 20:57:35 CEST 2006


Author: thomas.heller
Date: Fri Aug 4 20:57:34 2006
New Revision: 51113
Modified:
 python/trunk/Misc/NEWS
 python/trunk/setup.py
Log:
Fix #1530448 - fix ctypes build failure on solaris 10.
The '-mimpure-text' linker flag is required when linking _ctypes.so.
Modified: python/trunk/Misc/NEWS
==============================================================================
--- python/trunk/Misc/NEWS	(original)
+++ python/trunk/Misc/NEWS	Fri Aug 4 20:57:34 2006
@@ -48,6 +48,8 @@
 Build
 -----
 
+- Bug #1530448, ctypes buld failure on Solaris 10 was fixed.
+
 
 Mac
 ---
Modified: python/trunk/setup.py
==============================================================================
--- python/trunk/setup.py	(original)
+++ python/trunk/setup.py	Fri Aug 4 20:57:34 2006
@@ -1349,6 +1349,7 @@
 self.use_system_libffi = False
 include_dirs = []
 extra_compile_args = []
+ extra_link_args = []
 sources = ['_ctypes/_ctypes.c',
 '_ctypes/callbacks.c',
 '_ctypes/callproc.c',
@@ -1363,9 +1364,13 @@
 # XXX Is this still needed?
 ## extra_link_args.extend(['-read_only_relocs', 'warning'])
 
+ elif sys.platform == 'sunos5':
+ extra_link_args.append('-mimpure-text')
+
 ext = Extension('_ctypes',
 include_dirs=include_dirs,
 extra_compile_args=extra_compile_args,
+ extra_link_args=extra_link_args,
 libraries=[],
 sources=sources,
 depends=depends)


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /