fix win-dll-link.sh setup hook (#20925)
if a dll is symlink then dll files from the symlinked
directory need to be taken
commit59134519eefd1bc2b855b7e918e3f380e8c222dc
authorTomas Hlavaty <tom@logand.com>
dateWed 7 Dec 2016, 17:58 (10 years ago)
parentc677c35
pkgs/build-support/setup-hooks/win-dll-link.sh+1−1
@@ -33,7 +33,7 @@ _linkDLLs() {
3333 # That DLL might have its own (transitive) dependencies,
3434 # so add also all DLLs from its directory to be sure.
3535 local dllPath2
36− for dllPath2 in "$dllPath" "$(dirname "$dllPath")"/*.dll; do
36+ for dllPath2 in "$dllPath" "$(dirname $(readlink "$dllPath" || echo "$dllPath"))"/*.dll; do
3737 if [ -e ./"$(basename "$dllPath2")" ]; then continue; fi
3838 ln -sr "$dllPath2" .
3939 linkCount=$(($linkCount+1))