Skip to content

Commit

Permalink
upd: properly strip with find, strip libexec too.
Browse files Browse the repository at this point in the history
  • Loading branch information
mssx86 committed Sep 25, 2019
1 parent 5ce4994 commit 7d5a7c2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions doc/040-tc-stripping_and_ownership
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# 1 >> remove debug symbols with:
/usr/bin/strip --strip-debug /tools/lib/*
/usr/bin/strip --strip-unneeded /tools/{,s}bin/*
find /tools/lib -type f -name \*.a -exec strip --strip-debug {} ';'
find /tools/lib -type f \( -name \*.so* -a ! -name \*dbg \) -exec strip --strip-unneeded {} ';'
find /tools/lib -type f \( -name \*.so* -a ! -name \*dbg \) -exec strip --strip-unneeded {} ';'
find /tools/bin -type f -exec strip --strip-all {} ';'
find /tools/libexec -type f -exec strip --strip-all {} ';'

# 2 >> remove documentation and manual pages with:
rm -rf /tools/{,share}/{info,man,doc}
Expand Down

0 comments on commit 7d5a7c2

Please sign in to comment.