mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-17 06:06:13 +03:00
Don't apply patchelf to itself
Since patchelf 0.8 rewrites binaries in place, this causes a bus error.
This commit is contained in:
parent
5702bc3b55
commit
a6d19c28f1
@ -23,7 +23,7 @@ for i in $out/bin/* $out/libexec/gcc/*/*/*; do
|
||||
if [ -z "${i##*/liblto*}" ]; then continue; fi
|
||||
echo patching "$i"
|
||||
LD_LIBRARY_PATH=$out/lib $LD_BINARY \
|
||||
$out/bin/patchelf --set-interpreter $LD_BINARY --set-rpath $out/lib --force-rpath "$i"
|
||||
./patchelf --set-interpreter $LD_BINARY --set-rpath $out/lib --force-rpath "$i"
|
||||
done
|
||||
|
||||
for i in $out/lib/librt-*.so $out/lib/libpcre*; do
|
||||
|
Loading…
Reference in New Issue
Block a user