From: Barry Warsaw Date: Mon, 30 Sep 2002 14:42:29 +0000 (+0000) Subject: Add "runtime_library_dirs = ssl_libs" to the _socket Extension X-Git-Tag: v2.2.2b1~86 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d92ee88cbe0d91122aa378a6ee142fc3051bbfe;p=thirdparty%2FPython%2Fcpython.git Add "runtime_library_dirs = ssl_libs" to the _socket Extension 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). --- diff --git a/setup.py b/setup.py index fc8cfa9adbcf..2a44af17cc40 100644 --- 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: