Debian Codegraph @

src/container/80-strip-gcc-debug-symbols

raw
1 # Automatically strip gcc binaries
2 DPkg::Post-Invoke {
3 "/usr/bin/find /usr/lib/gcc/*/ /usr/libexec/gcc/*/ -maxdepth 2 -type f -size +10M -print0 2>/dev/null | /usr/bin/xargs -r0 /usr/bin/strip --strip-unneeded --remove-section=.comment --remove-section=.note";
4 };
5
6 # Verify binaries in tens of MB, not hundreds:
7 # find /usr/lib/gcc/*/ /usr/libexec/gcc/*/ -maxdepth 2 -type f -size +10M -print0 | xargs -r0 ls -lth