unpack bootstrap tools arm: fix more rpaths

libstdc++ and libmudflapth link to the dynamic loader; if the
bootstrap uses another dynamic loader name, and the rpath of these
libs isn't changed, they will fail to load.
This commit is contained in:
Lluís Batlle i Rossell 2012-12-29 23:14:25 +00:00
parent eb0422e4c1
commit f050675458

View File

@ -23,7 +23,8 @@ for i in $out/bin/* $out/libexec/gcc/*/*/* $out/lib/librt*; do
LD_LIBRARY_PATH=$out/lib $out/lib/ld-linux*.so.? \
$out/bin/patchelf --set-interpreter $out/lib/ld-linux*.so.? --set-rpath $out/lib --force-rpath $i
done
for i in $out/lib/librt* $out/lib/libcloog* $out/lib/libppl* $out/lib/libgmp*; do
for i in $out/lib/librt* $out/lib/libcloog* $out/lib/libppl* $out/lib/libgmp* \
$out/lib/libstdc++* $out/lib/libmudflap*; do
echo patching $i
if ! test -f $i; then continue; fi
if test -L $i; then continue; fi