logoalt Hacker News

swillslast Saturday at 1:08 AM1 replyview on HN

You can definitely use CGO and still build statically, but you do need to set ldflags to include -static.


Replies

tptaceklast Saturday at 1:14 AM

You can even cross-compile doing that.

show 1 reply