Skip to content
Permalink
Browse files

strip binaries fully

  • Loading branch information
peterhoeg committed Oct 15, 2018
1 parent 32bcd72 commit fe3bd46f614c551dc1b3f0dd20ff984565f9fc91
Showing with 4 additions and 4 deletions.
  1. +4 −4 pkgs/build-support/setup-hooks/strip.sh
@@ -23,14 +23,14 @@ _doStrip() {
if [[ "$dontStrip" || "$flag" ]] || ! type -f "$stripCmd" 2>/dev/null
then continue; fi

stripDebugList=${stripDebugList:-lib lib32 lib64 libexec bin sbin}
stripDebugList=${stripDebugList:-lib lib32 lib64}
if [ -n "$stripDebugList" ]; then
stripDirs "$stripCmd" "$stripDebugList" "${stripDebugFlags:--S}"
stripDirs "$stripCmd" "$stripDebugList" "${stripDebugFlags:--strip-debug --strip-unneeded}"
fi

stripAllList=${stripAllList:-}
stripAllList=${stripAllList:-libexec bin sbin}
if [ -n "$stripAllList" ]; then
stripDirs "$stripCmd" "$stripAllList" "${stripAllFlags:--s}"
stripDirs "$stripCmd" "$stripAllList" "${stripAllFlags:--strip-all}"
fi
done
}

0 comments on commit fe3bd46

Please sign in to comment.
You can’t perform that action at this time.