aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/python
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2016-05-12 16:40:06 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-01 12:38:42 +0100
commit083d0aa27f49e2b65f200c2c6089c32afd3f6442 (patch)
tree9b29b42047e7ffb77037c7c6eb7c892db906a9b5 /meta/recipes-devtools/python
parenta80a5b1f956d4d1ad0e998da10f31f81856b0309 (diff)
downloadopenembedded-core-contrib-083d0aa27f49e2b65f200c2c6089c32afd3f6442.tar.gz
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>
Diffstat (limited to 'meta/recipes-devtools/python')
-rw-r--r--meta/recipes-devtools/python/python3/unixccompiler.patch6
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 7b90f13883..3e2b1d1c2e 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