Skip to content

Commit

Permalink
Make /usr/local/libexec/ld really relative
Browse files Browse the repository at this point in the history
Pointed out by Kévin Le Gouguec in #425.
  • Loading branch information
rui314 committed Apr 16, 2022
1 parent c90801e commit 5803c3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ install: all
# move the entire directory to other place without breaking the reference.
# GNU ln supports `--relative` to do that, but that's not supported by
# non-GNU systems. So we use Python to compute a relative path.
ln -sf `python -c "import os.path; print(os.path.relpath('$(BINDIR)/mold', '$D$(LIBEXECDIR)/mold'))"` $D$(LIBEXECDIR)/mold/ld
ln -sf `python -c "import os.path; print(os.path.relpath('$(BINDIR)/mold', '$(LIBEXECDIR)/mold'))"` $D$(LIBEXECDIR)/mold/ld

$(INSTALL) -d $D$(MANDIR)/man1
$(INSTALL_DATA) docs/mold.1 $D$(MANDIR)/man1
Expand Down

0 comments on commit 5803c3c

Please sign in to comment.