This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug go/63731] Fallback to netgo does not work


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]