Revert "Just strip everything by default"
This reverts commit 2362891dc815160e343e52458f25db22508ac487. The patch is broken. :-(
This commit is contained in:
parent
30ef92e0ff
commit
397c75aeb4
@ -4,7 +4,7 @@ fixupOutputHooks+=(_doStrip)
|
|||||||
|
|
||||||
_doStrip() {
|
_doStrip() {
|
||||||
if [ -z "$dontStrip" ]; then
|
if [ -z "$dontStrip" ]; then
|
||||||
stripDebugList=${stripDebugList:-.}
|
stripDebugList=${stripDebugList:-lib lib32 lib64 libexec bin sbin}
|
||||||
if [ -n "$stripDebugList" ]; then
|
if [ -n "$stripDebugList" ]; then
|
||||||
stripDirs "$stripDebugList" "${stripDebugFlags:--S}"
|
stripDirs "$stripDebugList" "${stripDebugFlags:--S}"
|
||||||
fi
|
fi
|
||||||
@ -29,20 +29,8 @@ stripDirs() {
|
|||||||
dirs=${dirsNew}
|
dirs=${dirsNew}
|
||||||
|
|
||||||
if [ -n "${dirs}" ]; then
|
if [ -n "${dirs}" ]; then
|
||||||
header "Stripping (with flags $stripFlags) in$dirs"
|
header "stripping (with flags $stripFlags) in$dirs"
|
||||||
while IFS= read -r -d $'\0' f; do
|
find $dirs -type f -print0 | xargs -0 ${xargsFlags:--r} strip $commonStripFlags $stripFlags || true
|
||||||
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)
|
|
||||||
stopNest
|
stopNest
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user