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

boger at us dot ibm.com gcc-bugzilla@gcc.gnu.org
Fri Nov 21 15:12:00 GMT 2014


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63731

--- Comment #17 from boger at us dot ibm.com ---
Can you clarify how using -a -tags netgo actually works.  I know it requires
that the source be available, but it must mean that it rebuilds the package for
the current link only, throws it away after using it and next time it has to
rebuild it?

Couldn't some of your concerns about unexpected failures be resolved by
providing better error information when there were failures, or provide other
ways to indicate that the go resolver shouldn't be called (like an environment
variable)?  It just seems that rebuilding the package every time is a heavy
hammer to resolve this problem.

I think if someone wants to have their GO program use libnss if it is present
and then the go resolver if not, that should be an option and currently it is
not.



More information about the Gcc-bugs mailing list