1907
|
1 |
This patch modifies the setup script to support Solaris.
|
|
2 |
As it is Solaris-specific, it is not suitable for upstream.
|
|
3 |
|
|
4 |
--- Python-3.4.0/setup.py.~2~ 2014-03-19 10:36:25.778101571 -0700
|
|
5 |
+++ Python-3.4.0/setup.py 2014-03-19 10:36:25.855568930 -0700
|
|
6 |
@@ -728,6 +728,13 @@
|
|
7 |
['/usr/lib/termcap'],
|
|
8 |
'termcap'):
|
|
9 |
readline_libs.append('termcap')
|
|
10 |
+
|
|
11 |
+ if host_platform == 'sunos5':
|
|
12 |
+ # insert '-zrecord' before the readline libraries that we
|
|
13 |
+ # want to link with to avoid rl_insert() elimination
|
|
14 |
+ readline_extra_link_args = ('-Wl,-zrecord','-lreadline','-lncurses')
|
|
15 |
+ readline_libs = ()
|
|
16 |
+
|
|
17 |
exts.append( Extension('readline', ['readline.c'],
|
|
18 |
library_dirs=['/usr/lib/termcap'],
|
|
19 |
extra_link_args=readline_extra_link_args,
|
|
20 |
@@ -1900,7 +1907,7 @@
|
|
21 |
# this option. If you want to compile ctypes with the Sun
|
|
22 |
# compiler, please research a proper solution, instead of
|
|
23 |
# finding some -z option for the Sun compiler.
|
|
24 |
- extra_link_args.append('-mimpure-text')
|
|
25 |
+ pass
|
|
26 |
|
|
27 |
elif host_platform.startswith('hp-ux'):
|
|
28 |
extra_link_args.append('-fPIC')
|