3 ms·
Yes. It should work for most binaries that don't link statically with libc.
by 77pt77 3y ago
Yes. It should work for most binaries that don't link statically with libc.
- nine_k 3y agoThe point is that e.g. many programs written using Go are not like that. They should support IPv6 out of the box though.
- 77pt77 3y agoGo doesn't link against libc?
- jsmith45 3y agoThese days the default is to dynamically link to libc, because a few parts of the standard library either fundamentally need to use libc, or have benefits from such linking (like supporting NSS based user/group lookup). However, if you don't need to pull in any c libraries, you can use `CGO_ENABLED=0 go build` to build completely without linking to libc on linux. It is pretty common that applications will do that if they are not using the parts of the go standard library that need libc, and don't pull in C libraries.