Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

ldd tells me go depends on libc and libpthread (at least on linux), so it still needs c code at runtime.


All 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: