Re: [go-nuts] golang can't compile a static go compiler

2016-09-28 Thread Ian Lance Taylor
On Wed, Sep 28, 2016 at 10:29 AM, Dave Goehrig wrote: > > On x86_64-linux, golang 1.7.1 in cmd/cgo/out.go lines 248-277 explicitly > creates a dynamically linked elf file when compiling via go (but not gccgo, > cf line 3359 of cmd/go/build.go. > It appears that there is no way to build a static /

[go-nuts] golang can't compile a static go compiler

2016-09-28 Thread Dave Goehrig
On x86_64-linux, golang 1.7.1 in cmd/cgo/out.go lines 248-277 explicitly creates a dynamically linked elf file when compiling via go (but not gccgo, cf line 3359 of cmd/go/build.go. It appears that there is no way to build a static /bin/go as a result of this code. Is this correct? I ask bec