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:
parent
a80a5b1f95
commit
083d0aa27f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue