From b5f744c5d6fea4e5f33545d1dbf40d2f964cb786 Mon Sep 17 00:00:00 2001 From: Nitin A Kamble Date: Mon, 11 Oct 2010 14:33:54 -0700 Subject: python: fix for host contamination issue while cross compiling This fixes [BUGID #385] Signed-off-by: Nitin A Kamble --- .../06-avoid_usr_lib_termcap_path_in_linking.patch | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 meta/recipes-devtools/python/python/06-avoid_usr_lib_termcap_path_in_linking.patch (limited to 'meta/recipes-devtools/python/python') diff --git a/meta/recipes-devtools/python/python/06-avoid_usr_lib_termcap_path_in_linking.patch b/meta/recipes-devtools/python/python/06-avoid_usr_lib_termcap_path_in_linking.patch new file mode 100644 index 0000000000..30aa50dd44 --- /dev/null +++ b/meta/recipes-devtools/python/python/06-avoid_usr_lib_termcap_path_in_linking.patch @@ -0,0 +1,27 @@ +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 + +Index: Python-2.6.5/setup.py +=================================================================== +--- Python-2.6.5.orig/setup.py ++++ Python-2.6.5/setup.py +@@ -591,12 +591,10 @@ class PyBuildExt(build_ext): + readline_libs.append('ncurses') + elif self.compiler.find_library_file(lib_dirs, 'curses'): + readline_libs.append('curses') +- 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: -- cgit 1.2.3-korg