From c86bd1dfba4420775577b6c797a8dc4d0da4d3e9 Mon Sep 17 00:00:00 2001 From: Ned Ludd Date: Tue, 10 Jan 2006 22:44:52 +0000 Subject: [PATCH] - dont save debug info twice svn path=/main/trunk/; revision=2559 --- bin/prepstrip | 3 +++ 1 file changed, 3 insertions(+) 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} -- 2.26.2