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.
This commit is contained in:
David McFarland 2017-05-23 10:35:28 -03:00
parent cdc5cf52c1
commit dd8d0e3000

View File

@ -35,7 +35,7 @@ _linkDLLs() {
local dllPath2 local dllPath2
for dllPath2 in "$dllPath" "$(dirname $(readlink "$dllPath" || echo "$dllPath"))"/*.dll; do for dllPath2 in "$dllPath" "$(dirname $(readlink "$dllPath" || echo "$dllPath"))"/*.dll; do
if [ -e ./"$(basename "$dllPath2")" ]; then continue; fi if [ -e ./"$(basename "$dllPath2")" ]; then continue; fi
ln -sr "$dllPath2" . CYGWIN+=\ winsymlinks:nativestrict ln -sr "$dllPath2" .
linkCount=$(($linkCount+1)) linkCount=$(($linkCount+1))
done done
done done