fix win-dll-link.sh setup hook (#20925)

if a dll is symlink then dll files from the symlinked
directory need to be taken
This commit is contained in:
Tomas Hlavaty 2016-12-07 17:58:36 +01:00 committed by Vladimír Čunát
parent c677c35922
commit 59134519ee

View File

@ -33,7 +33,7 @@ _linkDLLs() {
# That DLL might have its own (transitive) dependencies,
# so add also all DLLs from its directory to be sure.
local dllPath2
for dllPath2 in "$dllPath" "$(dirname "$dllPath")"/*.dll; do
for dllPath2 in "$dllPath" "$(dirname $(readlink "$dllPath" || echo "$dllPath"))"/*.dll; do
if [ -e ./"$(basename "$dllPath2")" ]; then continue; fi
ln -sr "$dllPath2" .
linkCount=$(($linkCount+1))