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>
This commit is contained in:
Alexander Kanavin 2016-05-12 16:40:06 +03:00 committed by Richard Purdie
parent a80a5b1f95
commit 083d0aa27f
1 changed files with 3 additions and 3 deletions

View 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