unpack-bootstrap-tools: remove obsolete linker script patching
The linker scripts no longer contain store paths, so this does nothing. More importantly, libpthread.so is not longer a linker script on ARM, so the patching would corrupt it.
This commit is contained in:
parent
ee39e49b68
commit
05fc2a3524
@ -35,12 +35,7 @@ for i in $out/lib/librt-*.so $out/lib/libpcre*; do
|
|||||||
$out/bin/patchelf --set-rpath $out/lib --force-rpath "$i"
|
$out/bin/patchelf --set-rpath $out/lib --force-rpath "$i"
|
||||||
done
|
done
|
||||||
|
|
||||||
# Fix the libc linker script.
|
|
||||||
export PATH=$out/bin
|
export PATH=$out/bin
|
||||||
cat $out/lib/libc.so | sed "s|/nix/store/e*-[^/]*/|$out/|g" > $out/lib/libc.so.tmp
|
|
||||||
mv $out/lib/libc.so.tmp $out/lib/libc.so
|
|
||||||
cat $out/lib/libpthread.so | sed "s|/nix/store/e*-[^/]*/|$out/|g" > $out/lib/libpthread.so.tmp
|
|
||||||
mv $out/lib/libpthread.so.tmp $out/lib/libpthread.so
|
|
||||||
|
|
||||||
# Provide some additional symlinks.
|
# Provide some additional symlinks.
|
||||||
ln -s bash $out/bin/sh
|
ln -s bash $out/bin/sh
|
||||||
|
Loading…
x
Reference in New Issue
Block a user