1 From 87b627d8845e67fd798449b414bece04f18bd450 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Tue, 7 Mar 2017 22:22:40 +0100
4 Subject: [PATCH] Don't look in /usr/lib/termcap for libraries
6 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 1 file changed, 1 insertion(+), 4 deletions(-)
11 diff --git a/setup.py b/setup.py
12 index 3b51c0a..fa32532 100644
15 @@ -784,12 +784,9 @@ class PyBuildExt(build_ext):
16 pass # Issue 7384: Already linked against curses or tinfo.
18 readline_libs.append(curses_library)
19 - elif self.compiler.find_library_file(lib_dirs +
20 - ['/usr/lib/termcap'],
22 + elif self.compiler.find_library_file(lib_dirs, 'termcap'):
23 readline_libs.append('termcap')
24 exts.append( Extension('readline', ['readline.c'],
25 - library_dirs=['/usr/lib/termcap'],
26 extra_link_args=readline_extra_link_args,
27 libraries=readline_libs) )