Y
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
pjmlp
3225 days ago
By default, nowadays the toolchain also supports generating dynamic libraries.
link
4ad
3225 days ago
And by default, this feature is not used.
link
pjmlp
3225 days ago
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.
link