gcc编译 strip使用

一、去掉-g,等于程序作了--strip-debug
二、strip程序,等于程序作了--strip-debug和--strip-symbol

因此strip后程序会更小点
但对于静态库.a之类的文件,只能用--strip-debug

静态编译就不能使用 strip 了
debug