From b59da8fc7b46ee62cbe9eb97a05c8a0f1ab75593 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Thu, 7 Nov 2013 16:55:09 +0100 Subject: update valgrind to latest upstream version, strlen is not a function in ld.so in latest glibc/eglibc setups, just remove the redirect for now. enable automatic building of debug subpackages. update TODO --- scripts/rstrip.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'scripts/rstrip.sh') diff --git a/scripts/rstrip.sh b/scripts/rstrip.sh index 846bafd2f..e676dea82 100644 --- a/scripts/rstrip.sh +++ b/scripts/rstrip.sh @@ -28,8 +28,13 @@ fi find $TARGETS -type f -a -exec file {} \; | \ while IFS= read -r line; do F=${line%%:*} + D=${TARGETS}-dbg V=${F##*/fake-+([!/])/} + P=${F##*/pkg-+([!/])/} + Q=${P%/*} + R=${P##*/} T="${prefix}strip" + O="${prefix}objcopy" T=$T$stripcomm case $line in *ELF*executable*statically\ linked*) @@ -55,6 +60,9 @@ find $TARGETS -type f -a -exec file {} \; | \ echo "$SELF: $V:$S" echo "-> $T $F" eval "chmod u+w $F" + eval "mkdir -p $D/usr/lib/debug/$Q" + eval "$O --only-keep-debug $F $D/usr/lib/debug/$P.debug" eval "$T $F" + eval "cd $D/usr/lib/debug/$Q && $O --add-gnu-debuglink=$R.debug $F" done exit 0 -- cgit v1.2.3