From 9f3e9496f54f08dbcb88467d90ee20e093e5ecb0 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Thu, 10 Oct 2002 00:59:16 +0000 Subject: [PATCH] detect_modules(): Be more conservative about adding runtime_library_dirs (i.e. -R flags) when building the _socket.so module. Whitelist only the platforms we know need the flags, which are only sunos (aka Solaris) platforms at the moment. Tested on RH7.3, OSX 10.2, and Solaris 8. Forward port candidate for Python 2.3. --- setup.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 14e346c8b1a9..62d15f934191 100644 --- a/setup.py +++ b/setup.py @@ -361,10 +361,13 @@ class PyBuildExt(build_ext): if (ssl_incs is not None and ssl_libs is not None): + rtlibs = None + if platform.startswith('sunos'): + rtlibs = ssl_libs exts.append( Extension('_socket', ['socketmodule.c'], include_dirs = ssl_incs, library_dirs = ssl_libs, - runtime_library_dirs = ssl_libs, + runtime_library_dirs = rtlibs, libraries = ['ssl', 'crypto'], define_macros = [('USE_SSL',1)] ) ) else: -- 2.47.3