--- a/patches/Python-01-solaris-lib-dirs.diff Thu Oct 27 20:40:34 2005 +0000
+++ b/patches/Python-01-solaris-lib-dirs.diff Thu Oct 27 23:08:03 2005 +0000
@@ -23,7 +23,7 @@
]
inc_dirs = self.compiler.include_dirs + ['/usr/include']
exts = []
-@@ -450,6 +451,12 @@
+@@ -450,6 +451,15 @@
# socket(2)
exts.append( Extension('_socket', ['socketmodule.c'],
depends = ['socketmodule.h']) )
@@ -31,6 +31,9 @@
+ if self.compiler.find_library_file(lib_dirs,
+ 'socket'):
+ socket_libs.append('socket')
++ if self.compiler.find_library_file(lib_dirs,
++ 'nsl'):
++ socket_libs.append('nsl')
+ exts.append( Extension('_socket', ['socketmodule.c'],
+ libraries = socket_libs) )
# Detect SSL support for the socket module (via _ssl)