From: Richard Purdie Date: Fri, 20 Apr 2018 07:08:01 +0000 (+0100) Subject: package.bbclass: Only try and process static lib debug symbols on targetos != mingw* X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~18134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=305dda730738a8fb3789047b06fcc45d10212aa3;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git package.bbclass: Only try and process static lib debug symbols on targetos != mingw* "package.bbclass: Include dbgsrc for static libs" introduced a regression on mingw, fix this by excluding on that TARGETOS. Signed-off-by: Richard Purdie --- diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index fff7cebbe33..0436d919e7d 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -880,6 +880,7 @@ python split_and_strip_files () { dvar = d.getVar('PKGD') pn = d.getVar('PN') + targetos = d.getVar('TARGET_OS') oldcwd = os.getcwd() os.chdir(dvar) @@ -1049,7 +1050,7 @@ python split_and_strip_files () { # Only store off the hard link reference if we successfully split! splitdebuginfo(file, fpath, debugsrcdir, sourcefile, d) - if debugsrcdir: + if debugsrcdir and not targetos.startswith("mingw"): for file in staticlibs: append_source_info(file, sourcefile, d)