cygwin: force native symlinks for libraries

This will override the existing winsymlinks setting. nativestrict
will cause ln to fail if it's unable to create a native symlink.
Native symlinks are required for the windows dll loader to find the
libraries.

This script is also used for cross-mingw, but setting CYGWIN
shouldn't cause a problem.

+1 -1
+1 -1
pkgs/build-support/setup-hooks/win-dll-link.sh
··· 35 35 local dllPath2 36 36 for dllPath2 in "$dllPath" "$(dirname $(readlink "$dllPath" || echo "$dllPath"))"/*.dll; do 37 37 if [ -e ./"$(basename "$dllPath2")" ]; then continue; fi 38 - ln -sr "$dllPath2" . 38 + CYGWIN+=\ winsymlinks:nativestrict ln -sr "$dllPath2" . 39 39 linkCount=$(($linkCount+1)) 40 40 done 41 41 done