Don't apply patchelf to itself

Since patchelf 0.8 rewrites binaries in place, this causes a bus
error.
This commit is contained in:
Eelco Dolstra 2016-03-03 13:54:52 +01:00
parent 5702bc3b55
commit a6d19c28f1

View File

@ -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