4 # !!! For now, the name has to be exactly as long as the original
5 # name due to the sed hackery below. Once patchelf 0.4 is in the
6 # tree, we can do this properly.
7 #name = "${klibc.name}-shrunk";
11 cp -prd ${klibc.out}/lib/klibc/bin $out/
12 cp -p ${klibc.out}/lib/*.so $out/lib/
14 old=$(echo ${klibc.out}/lib/klibc-*.so)
15 new=$(echo $out/lib/klibc-*.so)
16 for i in $out/bin/*; do
18 sed "s^$old^$new^" -i $i
20 #patchelf --set-interpreter $new $i
23 allowedReferences = ["out"];