summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2006-01-10 22:44:52 +0000
committerNed Ludd <solar@gentoo.org>2006-01-10 22:44:52 +0000
commitc86bd1dfba4420775577b6c797a8dc4d0da4d3e9 (patch)
tree47686c4192789921f66e60d725642ef1cf87fbb7 /bin/prepstrip
parentAlways call prerm/postrm regardless if the previous install had contents or not. (diff)
downloadportage-multirepo-c86bd1dfba4420775577b6c797a8dc4d0da4d3e9.tar.gz
portage-multirepo-c86bd1dfba4420775577b6c797a8dc4d0da4d3e9.tar.bz2
portage-multirepo-c86bd1dfba4420775577b6c797a8dc4d0da4d3e9.zip
- dont save debug info twice
svn path=/main/trunk/; revision=2559
Diffstat (limited to 'bin/prepstrip')
-rwxr-xr-xbin/prepstrip3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/prepstrip b/bin/prepstrip
index 47130e69..f93fe9ea 100755
--- a/bin/prepstrip
+++ b/bin/prepstrip
@@ -21,6 +21,9 @@ save_elf_debug() {
[ "${FEATURES//*splitdebug*/true}" != "true" ] && return 0
+ # dont save debug info twice.
+ [ "${x:7}" == ".debug" ] && return 0
+
mkdir -p $(dirname ${y})
${CHOST}-objcopy --only-keep-debug ${x} ${y}.debug
${CHOST}-objcopy --add-gnu-debuglink=${y}.debug ${x}