Skip to content

Commit

Permalink
Revert "Just strip everything by default"
Browse files Browse the repository at this point in the history
This reverts commit 2362891. The patch
is broken. :-(
  • Loading branch information
peti committed May 4, 2016
1 parent 30ef92e commit 397c75a
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions pkgs/build-support/setup-hooks/strip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ fixupOutputHooks+=(_doStrip)

_doStrip() {
if [ -z "$dontStrip" ]; then
stripDebugList=${stripDebugList:-.}
stripDebugList=${stripDebugList:-lib lib32 lib64 libexec bin sbin}
if [ -n "$stripDebugList" ]; then
stripDirs "$stripDebugList" "${stripDebugFlags:--S}"
fi
Expand All @@ -29,20 +29,8 @@ stripDirs() {
dirs=${dirsNew}

if [ -n "${dirs}" ]; then
header "Stripping (with flags $stripFlags) in$dirs"
while IFS= read -r -d $'\0' f; do
if out=$(strip $commonStripFlags $stripFlags "$f" 2>&1); then
echo "Stripped $f"
else
# Ignore failures on files that cannot be stripped.
if [ "$out" = "strip:$f: File format not recognized" ]; then
continue
fi

echo "Strip failed on file $f: $out"
false # fail !
fi
done < <(find $dirs -type f -print0)
header "stripping (with flags $stripFlags) in$dirs"
find $dirs -type f -print0 | xargs -0 ${xargsFlags:--r} strip $commonStripFlags $stripFlags || true
stopNest
fi
}

0 comments on commit 397c75a

Please sign in to comment.