[gnome-continuous-yocto/gnomeostree-3.28-rocko: 585/8267] python3: add = to -L linking option only when the path is absolute



commit 083d0aa27f49e2b65f200c2c6089c32afd3f6442
Author: Alexander Kanavin <alexander kanavin linux intel com>
Date:   Thu May 12 16:40:06 2016 +0300

    python3: add = to -L linking option only when the path is absolute
    
    Previously it was added also when the path was relative and not
    prefixed with ./, which was causing issues with building numpy.
    
    (From OE-Core rev: 3e171c89e929a09e4d511a8f235dd90b7cf0d463)
    
    Signed-off-by: Alexander Kanavin <alexander kanavin linux intel com>
    Signed-off-by: Richard Purdie <richard purdie linuxfoundation org>

 .../python/python3/unixccompiler.patch             |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/meta/recipes-devtools/python/python3/unixccompiler.patch 
b/meta/recipes-devtools/python/python3/unixccompiler.patch
index 7b90f13..3e2b1d1 100644
--- a/meta/recipes-devtools/python/python3/unixccompiler.patch
+++ b/meta/recipes-devtools/python/python3/unixccompiler.patch
@@ -18,9 +18,9 @@ Index: Python-3.3.2/Lib/distutils/unixccompiler.py
  
      def library_dir_option(self, dir):
 -        return "-L" + dir
-+        if dir.startswith("."):
-+            return "-L" + dir
-+        return "-L=" + dir
++        if dir.startswith("/"):
++            return "-L=" + dir
++        return "-L" + dir
  
      def _is_gcc(self, compiler_name):
          return "gcc" in compiler_name or "g++" in compiler_name


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]