]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
detect_modules(): Be more conservative about adding
authorBarry Warsaw <barry@python.org>
Thu, 10 Oct 2002 00:59:16 +0000 (00:59 +0000)
committerBarry Warsaw <barry@python.org>
Thu, 10 Oct 2002 00:59:16 +0000 (00:59 +0000)
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

index 14e346c8b1a94b5c7353b7e33c0e19443ec2cd55..62d15f9341915ac1836538742f7a4cdc9cadd84b 100644 (file)
--- 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: