2 ms·
I had to deal with some of this the other day when I was distributing a binary that I wasn't dying to have easily linked back to me. go build -ldflags "-s"
by drivebyacct2 15y ago
I had to deal with some of this the other day when I was distributing a binary that I wasn't dying to have easily linked back to me.
go build -ldflags "-s" .
will strip some (all?) dev info out of the binary. Or at least it go it some my path information didn't appear when running "strings" on the binary.
- agentS 15y agoIt strips symbol table information. Relevant docs: http://golang.org/cmd/ld/ http://golang.org/cmd/ld/ http://plan9.bell-labs.com/magic/man2html/1/2l http://plan9.bell-labs.com/magic/man2html/1/2l