openjdk bootstrap: Fix rpath fixup

This commit is contained in:
Shea Levy 2018-03-07 06:23:02 -05:00
parent 8f54d931cd
commit 47116c2d5c
No known key found for this signature in database
GPG Key ID: 5C0BD6957D86FE27

View File

@ -45,7 +45,7 @@ let
find "$out" -type f -print0 | while IFS= read -r -d "" elf; do
isELF "$elf" || continue
patchelf --set-interpreter $(cat "${stdenv.cc}/nix-support/dynamic-linker") "$elf" || true
patchelf --set-rpath "${stdenv.cc.libc}/lib:$LIBDIRS" "$elf" || true
patchelf --set-rpath "${stdenv.cc.libc}/lib:${stdenv.cc.cc.lib}/lib:$LIBDIRS" "$elf" || true
done
# Temporarily, while NixOS's OpenJDK bootstrap tarball doesn't have PaX markings: