diff options
author | Ned Ludd <solar@gentoo.org> | 2006-01-10 22:44:52 +0000 |
---|---|---|
committer | Ned Ludd <solar@gentoo.org> | 2006-01-10 22:44:52 +0000 |
commit | c86bd1dfba4420775577b6c797a8dc4d0da4d3e9 (patch) | |
tree | 47686c4192789921f66e60d725642ef1cf87fbb7 | |
parent | 11b22c73ed69a68f9070d85857e66d93c02f9ba4 (diff) | |
download | portage-c86bd1dfba4420775577b6c797a8dc4d0da4d3e9.tar.gz portage-c86bd1dfba4420775577b6c797a8dc4d0da4d3e9.tar.bz2 portage-c86bd1dfba4420775577b6c797a8dc4d0da4d3e9.zip |
- dont save debug info twice
svn path=/main/trunk/; revision=2559
-rwxr-xr-x | bin/prepstrip | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/prepstrip b/bin/prepstrip index 47130e694..f93fe9eaa 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} |