Mercurial > cpython-lru_cache-weakref
diff setup.py @ 25690:d8ec98b74fa7 2.2
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.
| author | Barry Warsaw <barry@python.org> |
|---|---|
| date | Thu, 10 Oct 2002 00:59:16 +0000 |
| parents | 85539279094d |
| children | 4e6ac2fe68f0 |
line wrap: on
line diff
--- a/setup.py Wed Oct 09 22:34:39 2002 +0000 +++ b/setup.py Thu Oct 10 00:59:16 2002 +0000 @@ -361,10 +361,13 @@ 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:
