cygwin-dll-link: use link for cygwin1.dll

This commit is contained in:
David McFarland
2026-02-08 19:47:25 -04:00
parent a61e4dbb18
commit c345cee8a1
2 changed files with 5 additions and 2 deletions
@@ -29,7 +29,11 @@ _linkDeps() {
local dll
_dllDeps "$target" | while read -r dll; do
echo ' dll:' "$dll"
if [[ -e "$dir/$dll" ]]; then continue; fi
if [[ -L "$dir/$dll" || -e "$dir/$dll" ]]; then continue; fi
if [[ $dll = cygwin1.dll ]]; then
CYGWIN+=\ winsymlinks:nativestrict ln -sr /bin/cygwin1.dll "$dir"
continue
fi
# Locate the DLL - it should be an *executable* file on $LINK_DLL_FOLDERS.
local dllPath
if ! dllPath="$(PATH="$(dirname "$target"):$LINK_DLL_FOLDERS" type -P "$dll")"; then
-1
View File
@@ -704,7 +704,6 @@ let
allowedImpureDLLs
++ lib.optionals isCygwin [
"KERNEL32.dll"
"cygwin1.dll"
];
}
// (