"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>
dvar = d.getVar('PKGD')
pn = d.getVar('PN')
+ targetos = d.getVar('TARGET_OS')
oldcwd = os.getcwd()
os.chdir(dvar)
# 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)