Resolve _all_ Windows DLL dependencies

The current DLL linker only links direct dependencies of the derivation. Indirect dependencies are sometimes missed.
This commit is contained in:
PoweredByPie 2024-06-25 19:04:22 -07:00
parent 6a0926dd33
commit e72b347c1d

View File

@ -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]}"