Skip to content

Fix rpath handling in OCaml's Makefile.rules

Andrii Sultanov xen-devel 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest1 patch 1 replyIn review
  2. v11 patch 2 repliesSuperseded

Changes in v2 from the cover letter

- Previous version mistakenly did not actually get rid of the absolute rpath, pass -L directly to the linker as well
- Credit the original reporter

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1tools/ocaml: Specify rpath correctly for ocamlmklibtools/ocaml/Makefile.rules+2 -21 reply

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchFernando RodriguesChristian Lindig
1/1T-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/1] Fix rpath handling in OCaml's Makefile.rules

As reported by Nix's Xen team, OCaml stub libs would embed an absolute rpath in the binaries, which was picked up on by patchelf. This is a symptom of improper handling of -rpath-link in the first place, so correct that and get rid of the issue.

Changes in v2:
- Previous version mistakenly did not actually get rid of the absolute rpath, pass -L directly to the linker as well
- Credit the original reporter

Andrii Sultanov (1):
tools/ocaml: Specify rpath correctly for ocamlmklib

 tools/ocaml/Makefile.rules | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.39.5