3778
|
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.2/setup.py.~2~ 2015-02-03 13:28:29.343641665 -0800
|
|
5 |
+++ Python-3.4.2/setup.py 2015-02-03 13:47:37.128749230 -0800
|
|
6 |
@@ -736,6 +736,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 |
@@ -759,7 +766,8 @@
|
|
21 |
|
|
22 |
# socket(2)
|
|
23 |
exts.append( Extension('_socket', ['socketmodule.c'],
|
|
24 |
- depends = ['socketmodule.h']) )
|
|
25 |
+ depends = ['socketmodule.h'],
|
|
26 |
+ libraries = ['socket', 'nsl']) )
|
|
27 |
# Detect SSL support for the socket module (via _ssl)
|
|
28 |
search_for_ssl_incs_in = [
|
|
29 |
'/usr/local/ssl/include',
|
|
30 |
@@ -1918,7 +1926,7 @@
|
|
31 |
# this option. If you want to compile ctypes with the Sun
|
|
32 |
# compiler, please research a proper solution, instead of
|
|
33 |
# finding some -z option for the Sun compiler.
|
|
34 |
- extra_link_args.append('-mimpure-text')
|
|
35 |
+ pass
|
|
36 |
|
|
37 |
elif host_platform.startswith('hp-ux'):
|
|
38 |
extra_link_args.append('-fPIC')
|