noqcks/gucci

Linux release is linked to libc

Closed this issue · 0 comments

This prevents portability between distributions. I would like to use Gucci in my Alpine container but the fact is, I have to recompile it. If you're binary distribution is compiled statically, then you're linux-amd64 will work for all of our distro's.

Any chance I can convince you to release future versions of Gucci as statically compiled

This is how I did it:
GOOS=linux GOARCH=amd64 go build -a -tags netgo -ldflags '-w -extldflags "-static"' -o gucci gucci.go funcs.go util.go