1 From d7c568632f7cb83346096ea114a06f89a0b488d6 Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Wed, 23 Dec 2015 11:36:00 +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 1ebfa50..24a7153 100644
15 @@ -753,12 +753,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) )