Skip to content
Snippets Groups Projects
Commit 80102356 authored by Ben Gamari's avatar Ben Gamari Committed by Marge Bot
Browse files

hadrian: Don't duplicate binaries on installation

Previously we used `install` on symbolic links, which ended up
copying the target file rather than installing a symbolic link.

Fixes #22062.
parent c9655251
No related branches found
No related tags found
No related merge requests found
Pipeline #56111 failed
......@@ -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 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment