Skip to content

Commit edfba4d

Browse files
committed
GNUmakefile: Fix LN for cygwin
1 parent 209bb97 commit edfba4d

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

GNUmakefile

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,10 @@ TOYBOX_SRC := $(TOYBOX_ROOT)/toybox-$(TOYBOX_VER)
6767
# todo: support building wasm
6868
OS := $(or $(CARGO_BUILD_TARGET),$(shell rustc --print host-tuple))
6969

70-
# Windows does not allow symlink by default.
71-
# Allow to override LN for AppArmor.
72-
ifneq (,$(findstring windows,$(OS)))
73-
LN ?= ln -f
74-
endif
75-
LN ?= ln -sf
70+
# hardlinks are better default since
71+
# - Windows(cygwin) does not allow symlink by default
72+
# - std::env:current_exe resolves symlink
73+
LN ?= ln -f
7674

7775
SELINUX_PROGS := \
7876
chcon \

0 commit comments

Comments
 (0)