3 ms·
This used to be true, Unfortunately it’s not now. I found this out when trying to copy a go program I had compiled on alpine to an Ubuntu machine and got the “
by swiley 8y ago
This used to be true, Unfortunately it’s not now.
I found this out when trying to copy a go program I had compiled on alpine to an Ubuntu machine and got the “file not found” error from the linker. :(
Try it yourself: run ldd on a recent go binary.
- zaarn 8y agoGo uses the glibc for DNS resolution by default, if you set CGO_ENABLED=0 during compiling it should result in a static binary.