summary refs log tree commit diff
path: root/pkgs/stdenv/nix-linux-static/scripts/add-symlink.sh
blob: c6429c803ce4e9c5ddaab62d8f914479b8bd69ec (plain) (blame)
1
2
3
4
5
6
7
$extra2/bin/chmod u+w $out/include
(cd $out/include && $extra2/bin/ln -s $extra/include/* .) || exit 1

cd $out
$extra3/bin/find . -not -type l -exec chmod u+w {} \;
$extra3/bin/find . -exec $patchelf --interpreter $out/lib/ld-linux.so.2 --shrink-rpath {} \;
$extra3/bin/find . -not -type l -exec chmod u-w {} \;