save_elf_debug() {
local x=$1
- local y="${D}usr/lib/debug/${x:${#D}+1}.debug"
+ local y="${D}usr/lib/debug/${x:${#D}}.debug"
hasq splitdebug ${FEATURES} || return 0
fi
}
-for x in $(scanelf -yRBF%F "$@") $(for y in "$@"; do find "${y}" -type f -name '*.a' -print0 ; done); do
+for x in $(scanelf -yRBF%F "$@") $(for y in "$@"; do find "${y}" -type f -name '*.a' -print ; done); do
if [[ ${banner} -eq 1 ]] ; then
vecho "strip: ${STRIP} ${PORTAGE_STRIP_FLAGS}"
banner=0
set +o noglob
if [[ ${f} == *"current ar archive"* ]] ; then
- vecho " ${x:${#D}+1}"
+ vecho " ${x:${#D}}"
[[ ${stripitbaby} -eq 1 ]] && ${STRIP} -g "${x}"
fi
if [[ ${f} == *"SB executable"* || ${f} == *"SB shared object"* ]] ; then
- vecho " ${x:${#D}+1}"
+ vecho " ${x:${#D}}"
save_elf_debug "${x}"
[[ ${stripitbaby} -eq 1 ]] && ${STRIP} ${PORTAGE_STRIP_FLAGS} "${x}"
fi