Dimon Buzz
Dimon Buzz

Reputation: 1308

how to strip symbols after make but before make install?

I have a big project which after make ends up with 1GB of executables and libs. I use standard workflow: autogen, configure, make, make install. The problem is after this all the files ends up in default system directories along with other installed software and I can't selectively use strip to reduce the size of the project's executable and libraries. What is a proper workflow to strip symbols after make is done? Are there options for this in configure other then visiting each source directory and do it on my own after make is over?

Upvotes: 3

Views: 3848

Answers (1)

yurenchen
yurenchen

Reputation: 2493

make cmd

replace

make install

by

make install-strip

maybe that's want you want.
It will call install with -s option to strip binary when install.

the install-strip target

GNU: Standard Targets for Users

Upvotes: 0

Related Questions