commit a0076bbe3f2b090bd29e61d8b9701cda81b5cb68
Author: Fabian Greffrath <fabian@greffrath.com>
AuthorDate: Fri Jun 23 09:33:11 2023 +0200
Commit: Fabian Greffrath <fabian@greffrath.com>
CommitDate: Fri Jun 23 09:33:11 2023 +0200
cp-with-libs: skip APISet forwarder DLLs
---
pkg/win32/cp-with-libs | 3 +++
1 file changed, 3 insertions(+)
diff --git a/pkg/win32/cp-with-libs b/pkg/win32/cp-with-libs
index 5bb40a3b..fa3be4e5 100755
--- a/pkg/win32/cp-with-libs
+++ b/pkg/win32/cp-with-libs
@@ -96,6 +96,9 @@ def file_dependencies(filename, objdump):
m = DLL_NAME_RE.match(line.decode())
if m:
dll = m.group(1)
+ # APISet forwarder DLLs
+ if dll.lower().startswith("api-ms-win-"):
+ continue
if dll.lower() not in WIN32_DLLS:
result.append(dll)