From e72b347c1de252faa7a59b0f72f6997d9b992350 Mon Sep 17 00:00:00 2001 From: PoweredByPie Date: Tue, 25 Jun 2024 19:04:22 -0700 Subject: [PATCH] Resolve _all_ Windows DLL dependencies The current DLL linker only links direct dependencies of the derivation. Indirect dependencies are sometimes missed. --- pkgs/build-support/setup-hooks/win-dll-link.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/setup-hooks/win-dll-link.sh b/pkgs/build-support/setup-hooks/win-dll-link.sh index 14594bcba937..2c63dbfb217c 100644 --- a/pkgs/build-support/setup-hooks/win-dll-link.sh +++ b/pkgs/build-support/setup-hooks/win-dll-link.sh @@ -68,7 +68,7 @@ linkDLLsInfolder() { markFileAsDone "$file" if [ ! -e "./$file" ]; then local pathsFound - readarray -d '' pathsFound < <(find "${searchPaths[@]}" -name "$file" -type f -print0) + readarray -d '' pathsFound < <(find -L "${searchPaths[@]}" -name "$file" -type f -print0) if [ ${#pathsFound[@]} -eq 0 ]; then continue; fi local dllPath dllPath="${pathsFound[0]}"