Commit 5aa3c4af authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

Link readline module with ncurses in preference to termcap. [Bug ##441580]

Remove pointless comment
parent db7aed52
......@@ -310,7 +310,10 @@ class PyBuildExt(build_ext):
# readline
if self.compiler.find_library_file(lib_dirs, 'readline'):
readline_libs = ['readline']
if self.compiler.find_library_file(lib_dirs +
if self.compiler.find_library_file(lib_dirs,
'ncurses'):
readline_libs.append('ncurses')
elif self.compiler.find_library_file(lib_dirs +
['/usr/lib/termcap'],
'termcap'):
readline_libs.append('termcap')
......@@ -318,8 +321,7 @@ class PyBuildExt(build_ext):
library_dirs=['/usr/lib/termcap'],
libraries=readline_libs) )
# The crypt module is now disabled by default because it breaks builds
# on many systems (where -lcrypt is needed), e.g. Linux (I believe).
# crypt module.
if self.compiler.find_library_file(lib_dirs, 'crypt'):
libs = ['crypt']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment