aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python/python/06-avoid_usr_lib_termcap_path_in_linking.patch
blob: b39b22f496569055cba37b57d8fffbf39a0060c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Upstream-Status: Pending

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>

Index: Python-2.6.6/setup.py
===================================================================
--- Python-2.6.6.orig/setup.py
+++ Python-2.6.6/setup.py
@@ -665,12 +665,10 @@ class PyBuildExt(build_ext):
                 pass # Issue 7384: Already linked against curses or tinfo.
             elif curses_library:
                 readline_libs.append(curses_library)
-            elif self.compiler.find_library_file(lib_dirs +
-                                               ['/usr/lib/termcap'],
+            elif self.compiler.find_library_file(lib_dirs,
                                                'termcap'):
                 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: