Static-linked CGO binaries using musl and Zig
2025-02-15
The ability to produce statically-linked binaries by default in Go is one of the many good reasons why I appreciate and use it. Being able to copy or move only a single file around across all sorts of locations without worrying too much about missing libraries or runtimes has definitely saved me a lot of annoyances many times over. However, working on hedge-cb, and therefore, CGO, for the past few days, reminded me once again how much of a good thing static binaries are.
Cgo · Golang · Libc · Musl · Programming · Software · Systems · Tech · Zig
3 minutes