summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-04-20 08:08:01 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-04-20 08:08:36 +0100
commit305dda730738a8fb3789047b06fcc45d10212aa3 (patch)
tree18674efe215cdba75342f8114933549fd3b5f1c3
parent1df5f2dff832528905ff6fcf1d324619fb3d307f (diff)
downloadopenembedded-core-305dda730738a8fb3789047b06fcc45d10212aa3.tar.gz
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 <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/package.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index fff7cebbe3..0436d919e7 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)