Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Stripping Binaries:
- Not having luck with make install-strip, which doesn't work for all programs anyway:
- This works. Run this as root user from your build directory:
- # find . | xargs file | grep "executable" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || find . | xargs file | grep "shared object" | grep ELF | grep "not stripped" | cut -f 1 -d : | xargs strip -g 2> /dev/null
- If you want to keep your unstripped binaries, copy build directory to a sandbox first (cp -a builddir sandboxdir/builddir where sandbox/builddir does not already exist)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement