Merge pull request #13766 from tavyc/raspberrypifw-patchelf

raspberrypifw: Patch the ELF binaries to set the correct dynamic link…
This commit is contained in:
Arseniy Seroka 2016-03-08 22:29:09 +03:00
commit 52ddcb264b

View file

@ -17,6 +17,11 @@ in stdenv.mkDerivation {
cp -R boot/* $out/share/raspberrypi/boot
cp -R hardfp/opt/vc/* $out
cp opt/vc/LICENCE $out/share/raspberrypi
for f in $out/bin/*; do
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" "$f"
patchelf --set-rpath "$out/lib" "$f"
done
'';
meta = {