Regression: Recursive get_prerequisites fails on cross-build for system DLLs
afb674ab introduced an regression:
Setup: Linux with mingw cross-toolchain: Call get_prerequisites with on an exe file with recurse enabled.
The first part of get_prerequisites will gather all used DLLs, which include system DLLs like KERNEL32.dll, USER32.dll, ... A cross-build mingw system does not contain such system DLLs, so such DLLs resolve to other:
warning: cannot resolve item 'ADVAPI32.dll' possible problems: need more directories? need to use InstallRequiredSystemLibraries? run in install tree instead of build tree? -- gp_resolved_file_type: 'ADVAPI32.dll' 'ADVAPI32.dll' -- type: 'other' -- warning: gp_resolved_file_type non-absolute file 'ADVAPI32.dll' returning type 'other' -- possibly incorrect
At the end of get_prerequisites, get_prerequisites is called for all dependencies (including those system DLLs). As they don't exist, calling objdump for these DLLs fails. The commit mentioned above causes get_prerequisites to abort - previous versions continued on such errors.