- be sure to remove o+w bits on debug files
authorNed Ludd <solar@gentoo.org>
Sun, 30 Apr 2006 14:16:37 +0000 (14:16 -0000)
committerNed Ludd <solar@gentoo.org>
Sun, 30 Apr 2006 14:16:37 +0000 (14:16 -0000)
svn path=/main/trunk/; revision=3288

bin/prepstrip

index c8a648a3636c3e4dec874d97d5816b51312009de..a837d0a17386b2d07e0bb47837305f01123fb2a6 100755 (executable)
@@ -15,7 +15,7 @@ type -p -- ${STRIP} > /dev/null || STRIP=strip
 OBJCOPY=${OBJCOPY:-${CHOST}-objcopy}
 type -p -- ${OBJCOPY} > /dev/null || OBJCOPY=objcopy
 
-PORTAGE_STRIP_FLAGS=${PORTAGE_STRIP_FLAGS:---strip-unneeded}
+export PORTAGE_STRIP_FLAGS=${PORTAGE_STRIP_FLAGS:---strip-unneeded}
 
 banner=1
 
@@ -31,7 +31,7 @@ save_elf_debug() {
        mkdir -p $(dirname "${y}")
        ${OBJCOPY} --only-keep-debug "${x}" "${y}"
        ${OBJCOPY} --add-gnu-debuglink="${y}" "${x}"
-       chmod a-x "${y}"
+       chmod a-x,o-w "${y}"
 
        [[ " ${FEATURES} " != *" installsources "* ]] && return 0