Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

strip binaries #21986

Closed
ghost opened this issue Sep 23, 2017 · 1 comment
Closed

strip binaries #21986

ghost opened this issue Sep 23, 2017 · 1 comment

Comments

@ghost
Copy link

ghost commented Sep 23, 2017

Do the Go developers have an opinion on stripping binaries and libraries?

http://nurmi-labs.blogspot.com/2017/08/bootstrapping-go.html

Generally SlackBuild scripts will contain lines like the following after the
executables and dynamic libraries are compiled. The go source however
already contains some executables, so if only the newly generated files
were to be stripped, I might modify the build adding code to strip those
files in bin and libstd.so.

find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" |
grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

NB: This question is intended to pertain solely to source downloads.

@davecheney
Copy link
Contributor

We don't the issue tracker to ask questions. Please see https://golang.org/wiki/Questions for good places to ask. Thanks.

@golang golang locked and limited conversation to collaborators Sep 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants