mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2025-06-23 01:08:51 +00:00
Fix symlinking to multiarch tools on Cygwin
On cygwin, creating both "foo.exe" and "foo" results in 'ln -sf' returning an error ("File exists"). However, ln silently removes the "foo.exe" in this case, so an attempt to re-run the same command manually then succeeds. Hence, make binutils.sh also create symlinks with .exe prefix, using the new & shiny routine. Signed-off-by: Alexey Neyman <stilor@att.net>
This commit is contained in:
@ -1784,7 +1784,11 @@ CT_SymlinkTools()
|
||||
|
||||
CT_Pushd "${srcdir}"
|
||||
for t in "${CT_TARGET}-"*; do
|
||||
if [ -n "${newpfx}" -a "${newpfx}" != "${CT_TARGET}" ]; then
|
||||
if [ "${t}" = "${CT_TARGET}-*" ]; then
|
||||
# No matching files
|
||||
break
|
||||
fi
|
||||
if [ "${newpfx}" != "${CT_TARGET}" -o "${bindir}" != "${srcdir}" ]; then
|
||||
_t="${newpfx}-${t#${CT_TARGET}-}"
|
||||
CT_DoExecLog ALL ln -sfv "${dirpfx}${t}" "${bindir}/${_t}"
|
||||
fi
|
||||
|
Reference in New Issue
Block a user