2011-05-12 21:54:55 +00:00
|
|
|
Upstream-Status: Pending
|
|
|
|
|
2010-10-11 21:33:54 +00:00
|
|
|
The poison directories patch has detected library path issue while
|
|
|
|
compiling the python in cross environment, as seen bellow.
|
|
|
|
|
|
|
|
warning: library search path "/usr/lib/termcap" is unsafe for cross-compilation
|
|
|
|
|
|
|
|
This Patch fixes this issue in the python build environment.
|
|
|
|
11 Oct 2010
|
|
|
|
Nitin A Kamble <nitin.a.kamble@intel.com>
|
|
|
|
|
2011-10-14 07:06:13 +00:00
|
|
|
2011/09/29
|
|
|
|
Rebased for python 2.7.2
|
2016-06-27 19:59:19 +00:00
|
|
|
Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
|
2011-10-14 07:06:13 +00:00
|
|
|
|
2015-02-11 23:57:49 +00:00
|
|
|
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
|
|
|
|
|
|
|
|
diff --git a/setup.py b/setup.py
|
|
|
|
index 67eda74..59c537e 100644
|
|
|
|
--- a/setup.py
|
|
|
|
+++ b/setup.py
|
|
|
|
@@ -761,12 +761,10 @@ class PyBuildExt(build_ext):
|
2010-11-08 18:34:46 +00:00
|
|
|
pass # Issue 7384: Already linked against curses or tinfo.
|
|
|
|
elif curses_library:
|
|
|
|
readline_libs.append(curses_library)
|
2010-10-11 21:33:54 +00:00
|
|
|
- elif self.compiler.find_library_file(lib_dirs +
|
2015-02-11 23:57:49 +00:00
|
|
|
- ['/usr/lib/termcap'],
|
2010-10-11 21:33:54 +00:00
|
|
|
+ elif self.compiler.find_library_file(lib_dirs,
|
2015-02-11 23:57:49 +00:00
|
|
|
'termcap'):
|
2010-10-11 21:33:54 +00:00
|
|
|
readline_libs.append('termcap')
|
|
|
|
exts.append( Extension('readline', ['readline.c'],
|
|
|
|
- library_dirs=['/usr/lib/termcap'],
|
|
|
|
extra_link_args=readline_extra_link_args,
|
|
|
|
libraries=readline_libs) )
|
|
|
|
else:
|