Kaydet (Commit) 17984895 authored tarafından Thomas Heller's avatar Thomas Heller

Fix #1530448 - fix ctypes build failure on solaris 10.

The '-mimpure-text' linker flag is required when linking _ctypes.so.
üst 74d36f0d
......@@ -48,6 +48,8 @@ Tests
Build
-----
- Bug #1530448, ctypes buld failure on Solaris 10 was fixed.
Mac
---
......
......@@ -1349,6 +1349,7 @@ class PyBuildExt(build_ext):
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 @@ class PyBuildExt(build_ext):
# 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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment