Hacker News new | ask | show | jobs
by arghwhat 3225 days ago
Well, Go code is statically linked, but the runtime may try to dynamically load libc for DNS resolving. Use of cgo of course drastically change everything.
1 comments

By default, nowadays the toolchain also supports generating dynamic libraries.
And by default, this feature is not used.
So what, it doesn't make this "Go code is statically linked" into a fact, given that it depends on compiler flags.

Now if it said "Go code is usually/by default statically linked", then yes.