summaryrefslogtreecommitdiffstats
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 08:04:11 +0100
commit3e171c89e929a09e4d511a8f235dd90b7cf0d463 (patch)
tree85e189a22f341fab7b3b270d586afc8ce46ed565
parent3e751bd05f7033b15e717fa4d56fefd915d2ea0c (diff)
downloadopenembedded-core-contrib-3e171c89e929a09e4d511a8f235dd90b7cf0d463.tar.gz
openembedded-core-contrib-3e171c89e929a09e4d511a8f235dd90b7cf0d463.tar.bz2
openembedded-core-contrib-3e171c89e929a09e4d511a8f235dd90b7cf0d463.zip
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. Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
-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