From: Alexander Kanavin Date: Thu, 12 May 2016 13:40:06 +0000 (+0300) Subject: python3: add = to -L linking option only when the path is absolute X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~25595 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3e171c89e929a09e4d511a8f235dd90b7cf0d463;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 --- diff --git a/meta/recipes-devtools/python/python3/unixccompiler.patch b/meta/recipes-devtools/python/python3/unixccompiler.patch index 7b90f138831..3e2b1d1c2eb 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