]> code.ossystems Code Review - openembedded-core.git/commitdiff
python3: add = to -L linking option only when the path is absolute
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>
Thu, 12 May 2016 13:40:06 +0000 (16:40 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Jun 2016 07:04:11 +0000 (08:04 +0100)
Previously it was added also when the path was relative and not
prefixed with ./, which was causing issues with building numpy.

Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
meta/recipes-devtools/python/python3/unixccompiler.patch

index 7b90f138831cd467b3b2155a8cf9ea20963a3037..3e2b1d1c2eba737e8491324e8f69845fc8ecad74 100644 (file)
@@ -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