]> code.ossystems Code Review - openembedded-core.git/commitdiff
package.bbclass: Only try and process static lib debug symbols on targetos != mingw*
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Apr 2018 07:08:01 +0000 (08:08 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 20 Apr 2018 07:08:36 +0000 (08:08 +0100)
"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>
meta/classes/package.bbclass

index fff7cebbe335e854900d47eef612e746117d76e2..0436d919e7d759f6caa94fe7ae1e2fb742e5f64d 100644 (file)
@@ -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)