Hacker News new | ask | show | jobs
by whytevuhuni 362 days ago
I’m genuinely curious now, what made you so convinced that it would be completely statically linked?
1 comments

I think people often talk about Rust only supporting static linking so he probably inferred that it couldn't dynamically link with anything.

Also Go does produce fully static binaries on Linux and so it's at least reasonable to incorrectly guess that Rust does the same.

Definitely shouldn't be so confident though!

Go may or may not do that on Linux depending what you import. If you call things from `os/user` for example, you'll get a dynamically linked binary unless you build with `-tags osusergo`. A similar case exists for `net`.
go by default links libc
It doesn't. See the sibling comment.