summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hadrian/bindist/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/hadrian/bindist/Makefile b/hadrian/bindist/Makefile
index 33ec5ace3f..215c2665d9 100644
--- a/hadrian/bindist/Makefile
+++ b/hadrian/bindist/Makefile
@@ -139,7 +139,11 @@ install_bin_libdir:
@echo "Copying binaries to $(DESTDIR)$(ActualBinsDir)"
$(INSTALL_DIR) "$(DESTDIR)$(ActualBinsDir)"
for i in $(BINARIES); do \
- $(INSTALL_PROGRAM) $$i "$(DESTDIR)$(ActualBinsDir)"; \
+ if test -L "$$i"; then \
+ cp -RP "$$i" "$(DESTDIR)$(ActualBinsDir)"; \
+ else \
+ $(INSTALL_PROGRAM) "$$i" "$(DESTDIR)$(ActualBinsDir)"; \
+ fi; \
done
# Work around #17418 on Darwin
if [ -e "${XATTR}" ]; then \