This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug go/63731] Fallback to netgo does not work
- From: "boger at us dot ibm.com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 31 Mar 2015 18:27:54 +0000
- Subject: [Bug go/63731] Fallback to netgo does not work
- Auto-submitted: auto-generated
- References: <bug-63731-4 at http dot gcc dot gnu dot org/bugzilla/>
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