From 8408ad49870d0ff074f132bde2998a1368651261 Mon Sep 17 00:00:00 2001 From: Doug Rabson Date: Fri, 30 Jun 2023 08:20:48 +0100 Subject: [PATCH] Makefile: don't rely on the non-standard -r flag for ln This flag is not supported on BSD-derived systems including FreeBSD and macos. We can get exactly the same symlink by passing the desired relative path as source argument to 'ln -sf'. Signed-off-by: Doug Rabson --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index da8e73c342..badca1e6df 100644 --- a/Makefile +++ b/Makefile @@ -830,7 +830,7 @@ install.remote: install.bin: install ${SELINUXOPT} -d -m 755 $(DESTDIR)$(BINDIR) install ${SELINUXOPT} -m 755 bin/podman $(DESTDIR)$(BINDIR)/podman - ln -sfr $(DESTDIR)$(BINDIR)/podman $(DESTDIR)$(BINDIR)/podmansh + ln -sf podman $(DESTDIR)$(BINDIR)/podmansh test -z "${SELINUXOPT}" || chcon --verbose --reference=$(DESTDIR)$(BINDIR)/podman bin/podman install ${SELINUXOPT} -d -m 755 $(DESTDIR)$(LIBEXECPODMAN) ifneq ($(shell uname -s),FreeBSD)