From 8bf811c09e5247e449c9b7f10c74ba6249cb93f2 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Sun, 29 Jan 2006 14:31:29 +0000 Subject: make sure all .debug files have the executable bit cleared svn path=/main/trunk/; revision=2605 --- bin/prepstrip | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/prepstrip b/bin/prepstrip index b480cffa1..c8a648a36 100755 --- a/bin/prepstrip +++ b/bin/prepstrip @@ -21,7 +21,7 @@ banner=1 save_elf_debug() { local x=$1 - local y="${D}/usr/lib/debug/${x:${#D}:${#x}}" + local y="${D}/usr/lib/debug/${x:${#D}:${#x}}.debug" [[ " ${FEATURES} " != *" splitdebug "* ]] && return 0 @@ -29,8 +29,9 @@ save_elf_debug() { [[ ${x:7} == ".debug" ]] && return 0 mkdir -p $(dirname "${y}") - ${OBJCOPY} --only-keep-debug ${x} ${y}.debug - ${OBJCOPY} --add-gnu-debuglink=${y}.debug ${x} + ${OBJCOPY} --only-keep-debug "${x}" "${y}" + ${OBJCOPY} --add-gnu-debuglink="${y}" "${x}" + chmod a-x "${y}" [[ " ${FEATURES} " != *" installsources "* ]] && return 0 -- cgit v1.2.3-1-g7c22