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.
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: