From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 53827 invoked by alias); 1 Mar 2015 23:40:00 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 53781 invoked by uid 48); 1 Mar 2015 23:39:57 -0000 From: "ian at airs dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug go/63731] Fallback to netgo does not work Date: Sun, 01 Mar 2015 23:40:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: go X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ian at airs dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ian at airs dot com X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-03/txt/msg00051.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63731 --- Comment #28 from Ian Lance Taylor --- Currently there is no reasonable way to use the Go DNS resolver when using gccgo. Any program that uses the net package will call glibc for DNS resolution, meaning that you are limited to what glibc will do, which, as you say, means calling dlopen. go build -a does not work with gccgo. The problem is that gccgo uses its own copy of the Go library sources and they can not be built with go build -a. It would be nice to fix this but it is not at all a priority, since most people will use the installed libgo.