9 # Remove crap in the root directory.
12 if test -f $file ; then
17 # Set the dynamic linker.
19 for i
in $libraries; do
20 rpath
=$rpath${rpath:+:}$i/lib
22 find $out -type f
-perm -0100 \
23 -exec patchelf
--interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" {} \
;
24 find $out -type f
-perm -0100 \
25 -exec patchelf
--set-rpath "$rpath" {} \
;