]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add "runtime_library_dirs = ssl_libs" to the _socket Extension
authorBarry Warsaw <barry@python.org>
Mon, 30 Sep 2002 14:42:29 +0000 (14:42 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 30 Sep 2002 14:42:29 +0000 (14:42 +0000)
specification so that the proper runtime ld.so path gets compiled into
the extension.  This fixes _socket for Solaris systems with libssl and
libcrypto in non-standard locations and should be fine for other
systems as well.  Closes SF bug #565710.

Forward port candidate for Python 2.3 (I'll work on that).

setup.py

index fc8cfa9adbcf9323b92c0f692704ababfd7161b0..2a44af17cc4051a574af6a0d61a6bfbcad1a4e3a 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -364,6 +364,7 @@ class PyBuildExt(build_ext):
             exts.append( Extension('_socket', ['socketmodule.c'],
                                    include_dirs = ssl_incs,
                                    library_dirs = ssl_libs,
+                                   runtime_library_dirs = ssl_libs,
                                    libraries = ['ssl', 'crypto'],
                                    define_macros = [('USE_SSL',1)] ) )
         else: