From: Andrew M. Kuchling Date: Wed, 21 Feb 2001 02:38:24 +0000 (+0000) Subject: Patch #103544: always compile the dl and nis modules on Unix; let's see X-Git-Tag: v2.1b1~247 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cf393f3fd9759ffac71c816f97ea01780848512c;p=python Patch #103544: always compile the dl and nis modules on Unix; let's see where they break. --- diff --git a/setup.py b/setup.py index 3c122e5e8b..ea4d94f0c9 100644 --- a/setup.py +++ b/setup.py @@ -362,9 +362,16 @@ class PyBuildExt(build_ext): if platform not in ['cygwin']: exts.append( Extension('resource', ['resource.c']) ) + # Generic dynamic loading module + exts.append( Extension('dl', ['dlmodule.c']) ) + + # Sun yellow pages. Some systems have the functions in libc. if (self.compiler.find_library_file(lib_dirs, 'nsl')): - exts.append( Extension('nis', ['nismodule.c'], - libraries = ['nsl']) ) + libs = ['nsl'] + else: + libs = [] + exts.append( Extension('nis', ['nismodule.c'], + libraries = libs) ) # Curses support, requring the System V version of curses, often # provided by the ncurses library.