History

configure: win32: error only once about 'ln failed'

Don't try ln again if it failed, it won't have better luck next time.

Avi Halachmi (:avih) committed 1 year ago

Commit 126b1ff1 parent c45559e1 file · +4 −1Browse files

Unified · Split

configure+4−1
@@ -710,6 +710,7 @@ rm -f $TMPN* $CONFTEST · 709 unmodified lines
710710 # ---------------------------------------------------------------------------
711711 # build tree in object directory if source path is different from current one
712712
713+use_cp=
713714 fn_makelink()
714715 {
715716 tgt=$1/$2
@@ -726,7 +727,9 @@ fn_makelink() · 10 unmodified lines
726727 ;;
727728 esac
728729
729− ln -sfn "$tgt" $2 || ( echo "ln failed. Using cp instead."; cp -f "$1/$2" $2 )
730+ test -n "$use_cp" || ln -sfn "$tgt" $2 ||
731+ { use_cp=yes; echo "ln failed. Using cp instead."; }
732+ test -z "$use_cp" || cp -f "$1/$2" $2
730733 }
731734
732735 if test "$source_path_used" = "yes" ; then

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t