On Fri, Nov 4, 2016 at 7:39 AM, Nick Craig-Wood <n...@craig-wood.com> wrote: > I know I can build go binaries passing the `-s` flag to the linker to > strip them and make them smaller. In my tests (with rclone) it makes it > 60% of the size so a significant saving. I'd like to enable this for > binaries I distribute to end users. > > go install -ldflags "-s" > > However what are the consequences? The link docs say what it does but > not what the consequences are. > > https://golang.org/cmd/link/ > > -s > Omit the symbol table and debug information. > > I can see that I still get source code lines in my backtraces which is > very important to me but what am I losing? Why wouldn't I want to do this?
You won't be able to run gdb or various other non-Go-specific tools. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.