raspberrypifw: Patch the ELF binaries to set the correct dynamic linker and RPATH.

This commit is contained in:
Octavian Cerna 2016-03-08 19:20:57 +02:00
parent 392bde8809
commit e714c80497

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 = {