summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2013-11-07 16:55:09 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2013-11-07 16:55:09 +0100
commitb59da8fc7b46ee62cbe9eb97a05c8a0f1ab75593 (patch)
tree693c02553b84749c1eef6323ff528850c46687f4 /scripts
parent08f64b87c0b6e9a6de7250c616a91830ef447713 (diff)
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
Diffstat (limited to 'scripts')
-rw-r--r--scripts/rstrip.sh8
1 files changed, 8 insertions, 0 deletions
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