mirror of
https://github.com/uutils/coreutils.git
synced 2026-05-06 07:26:38 -04:00
GNUmakefile: Fix LN for cygwin
This commit is contained in:
+4
-6
@@ -67,12 +67,10 @@ TOYBOX_SRC := $(TOYBOX_ROOT)/toybox-$(TOYBOX_VER)
|
||||
# todo: support building wasm
|
||||
OS := $(or $(CARGO_BUILD_TARGET),$(shell rustc --print host-tuple))
|
||||
|
||||
# Windows does not allow symlink by default.
|
||||
# Allow to override LN for AppArmor.
|
||||
ifneq (,$(findstring windows,$(OS)))
|
||||
LN ?= ln -f
|
||||
endif
|
||||
LN ?= ln -sf
|
||||
# hardlinks are better default since
|
||||
# - Windows(cygwin) does not allow symlink by default
|
||||
# - std::env:current_exe resolves symlink
|
||||
LN ?= ln -f
|
||||
|
||||
SELINUX_PROGS := \
|
||||
chcon \
|
||||
|
||||
Reference in New Issue
Block a user