From: Barry Warsaw Date: Thu, 10 Oct 2002 00:59:16 +0000 (+0000) Subject: detect_modules(): Be more conservative about adding X-Git-Tag: v2.2.2~39 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9f3e9496f54f08dbcb88467d90ee20e093e5ecb0;p=thirdparty%2FPython%2Fcpython.git 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. --- 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: