eth0s/toolchain/99-cleaning

14 lines
337 B
Text
Raw Normal View History

name=cleaning
2018-12-01 00:12:45 +08:00
build() {
strip --strip-debug /tools/lib/* || true
/usr/bin/strip --strip-unneeded /tools/{,s}bin/* || true
rm -rf /tools{,/share}/{info,man,doc}
find /tools/{lib,libexec} -name \*.la -delete
2018-12-01 00:12:45 +08:00
if [ "$MULTILIB" = "yes" ]; then
strip --strip-debug /tools/lib32/* || true
find /tools/lib32 -name \*.la -delete
fi
}