diff options
author | David McFarland <corngood@gmail.com> | 2017-05-23 10:35:28 -0300 |
---|---|---|
committer | David McFarland <corngood@gmail.com> | 2017-06-26 09:26:10 -0300 |
commit | dd8d0e300064e9d7d0a952c29abb4496800b59c8 (patch) | |
tree | d5fb7ea2be9c5efb7e074d3cc776d0934a41a135 | |
parent | cdc5cf52c1e1a18e62bbd85ca404492e9bd3023a (diff) | |
download | nixpkgs-dd8d0e300064e9d7d0a952c29abb4496800b59c8.tar nixpkgs-dd8d0e300064e9d7d0a952c29abb4496800b59c8.tar.gz nixpkgs-dd8d0e300064e9d7d0a952c29abb4496800b59c8.tar.bz2 nixpkgs-dd8d0e300064e9d7d0a952c29abb4496800b59c8.tar.lz nixpkgs-dd8d0e300064e9d7d0a952c29abb4496800b59c8.tar.xz nixpkgs-dd8d0e300064e9d7d0a952c29abb4496800b59c8.tar.zst nixpkgs-dd8d0e300064e9d7d0a952c29abb4496800b59c8.zip |
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.
-rw-r--r-- | pkgs/build-support/setup-hooks/win-dll-link.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/setup-hooks/win-dll-link.sh b/pkgs/build-support/setup-hooks/win-dll-link.sh index 634a9d18f00..9658b9f8259 100644 --- a/pkgs/build-support/setup-hooks/win-dll-link.sh +++ b/pkgs/build-support/setup-hooks/win-dll-link.sh @@ -35,7 +35,7 @@ _linkDLLs() { local dllPath2 for dllPath2 in "$dllPath" "$(dirname $(readlink "$dllPath" || echo "$dllPath"))"/*.dll; do if [ -e ./"$(basename "$dllPath2")" ]; then continue; fi - ln -sr "$dllPath2" . + CYGWIN+=\ winsymlinks:nativestrict ln -sr "$dllPath2" . linkCount=$(($linkCount+1)) done done |