3 ms·
ldd tells me go depends on libc and libpthread (at least on linux), so it still needs c code at runtime.
by thayne 6y ago
ldd tells me go depends on libc and libpthread (at least on linux), so it still needs c code at runtime.
- jchw 6y agoAll you have to do is build the toolchain with CGO_ENABLED=0. The optional CGo bits are not needed for anything that the compiler cares about I don’t think; IIRC with CGo enabled it will use the system’s DNS resolver on Linux for example, instead of reading resolv.conf and talking to DNS servers directly.