lol
at v206 16 lines 531 B view raw
1# This setup hook calls patchelf to automatically remove unneeded 2# directories from the RPATH of every library or executable in every 3# output. 4 5fixupOutputHooks+=('if [ -z "$dontPatchELF" ]; then patchELF "$prefix"; fi') 6 7patchELF() { 8 header "patching ELF executables and libraries in $prefix" 9 if [ -e "$prefix" ]; then 10 find "$prefix" \( \ 11 \( -type f -a -name "*.so*" \) -o \ 12 \( -type f -a -perm -0100 \) \ 13 \) -print -exec patchelf --shrink-rpath '{}' \; 14 fi 15 stopNest 16}