On Fri, Mar 17, 2017 at 2:03 AM, Vasiliy Tolstov <v.tols...@selfip.ru> wrote: > Does it possible to compile using newlib > (https://sourceware.org/newlib/) for static binary? Does someone try > to do that ?
Go can statically link a binary without any C library at all. The question of using a C library only comes in when cgo to call C code. I suspect that right now Go programs that use cgo will fail to build with newlib, because the runtime/cgo package expects to be able to call functions like pthread_create that, last time I looked, newlib does not provide. Ian -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.