mirror of
https://github.com/python/cpython.git
synced 2025-07-20 01:35:19 +00:00
Patch #103544: always compile the dl and nis modules on Unix; let's see
where they break.
This commit is contained in:
parent
c5032194be
commit
cf393f3fd9
1 changed files with 9 additions and 2 deletions
11
setup.py
11
setup.py
|
@ -362,9 +362,16 @@ class PyBuildExt(build_ext):
|
||||||
if platform not in ['cygwin']:
|
if platform not in ['cygwin']:
|
||||||
exts.append( Extension('resource', ['resource.c']) )
|
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')):
|
if (self.compiler.find_library_file(lib_dirs, 'nsl')):
|
||||||
exts.append( Extension('nis', ['nismodule.c'],
|
libs = ['nsl']
|
||||||
libraries = ['nsl']) )
|
else:
|
||||||
|
libs = []
|
||||||
|
exts.append( Extension('nis', ['nismodule.c'],
|
||||||
|
libraries = libs) )
|
||||||
|
|
||||||
# Curses support, requring the System V version of curses, often
|
# Curses support, requring the System V version of curses, often
|
||||||
# provided by the ncurses library.
|
# provided by the ncurses library.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue