summaryrefslogtreecommitdiffstats
path: root/meta
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
parenta80a5b1f956d4d1ad0e998da10f31f81856b0309 (diff)
downloadpoky-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')
-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
18 18
19 def library_dir_option(self, dir): 19 def library_dir_option(self, dir):
20- return "-L" + dir 20- return "-L" + dir
21+ if dir.startswith("."): 21+ if dir.startswith("/"):
22+ return "-L" + dir 22+ return "-L=" + dir
23+ return "-L=" + dir 23+ return "-L" + dir
24 24
25 def _is_gcc(self, compiler_name): 25 def _is_gcc(self, compiler_name):
26 return "gcc" in compiler_name or "g++" in compiler_name 26 return "gcc" in compiler_name or "g++" in compiler_name