Merge pull request #13766 from tavyc/raspberrypifw-patchelf
raspberrypifw: Patch the ELF binaries to set the correct dynamic link…
This commit is contained in:
commit
52ddcb264b
|
@ -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 = {
|
||||
|
|
Loading…
Reference in a new issue