https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63731
--- Comment #33 from boger at us dot ibm.com --- Created attachment 35195 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35195&action=edit "Fallback" netgo solution for gccgo This patch updates the libgo Makefile to build and install the library libnetgo.a into the same install directory as libgo.a. When libnetgo.a is available then the user can link it into their statically linked program and get the same result as when using the netgo fallback mechanism that is available with golang as mentioned in this bugzilla. Once libnetgo.a is built and installed then a statically linked program can link this into their program as follows: go build -gccgoflags '-static -lnetgo' lookup.go