Patchwork [1/1] python3: fix builtins imports

login
register
mail settings
Submitter Roxana
Date June 30, 2014, 9:44 a.m.
Message ID <8da3c8378d020bce0ecc2cef6a4a5da3be983709.1404120809.git.roxana.ciobanu@intel.com>
Download mbox | patch
Permalink /patch/74475/
State New
Headers show

Comments

Roxana - June 30, 2014, 9:44 a.m.
On some Linux distros the current working directory
is not added to the linker's path.
Issue reproduced on Ubuntu 14.04 LTS.

Fix for [YOCTO #6467].

Signed-off-by: Roxana <roxana.ciobanu@intel.com>
---
 meta/recipes-devtools/python/python3/unixccompiler.patch | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

Patch

diff --git a/meta/recipes-devtools/python/python3/unixccompiler.patch b/meta/recipes-devtools/python/python3/unixccompiler.patch
index b2229b4..7b90f13 100644
--- a/meta/recipes-devtools/python/python3/unixccompiler.patch
+++ b/meta/recipes-devtools/python/python3/unixccompiler.patch
@@ -13,11 +13,13 @@  Index: Python-3.3.2/Lib/distutils/unixccompiler.py
 ===================================================================
 --- Python-3.3.2.orig/Lib/distutils/unixccompiler.py	2013-05-15 09:32:54.000000000 -0700
 +++ Python-3.3.2/Lib/distutils/unixccompiler.py	2013-08-01 00:58:18.629056286 -0700
-@@ -202,7 +202,7 @@
+@@ -202,7 +202,9 @@
      # ccompiler.py.
  
      def library_dir_option(self, dir):
 -        return "-L" + dir
++        if dir.startswith("."):
++            return "-L" + dir
 +        return "-L=" + dir
  
      def _is_gcc(self, compiler_name):