go/src/cmd
Alex Brainman dfbbe06a20 cmd/link, cmd/go: delay linking of mingwex and mingw32 until very end
cmd/go links mingwex and mingw32 libraries to every package it builds.
This breaks when 2 different packages call same gcc standard library
function pow. gcc linker appends pow implementation to the compiled
package, and names that function "pow". But when these 2 compiled
packages are linked together into the final executable, linker
complains, because it finds two "pow" functions with the same name.

This CL stops linking of mingwex and mingw32 during package build -
that leaves pow function reference unresolved. pow reference gets
resolved as final executable is built, by having both internal and
external linker use mingwex and mingw32 libraries.

Fixes #8756

Change-Id: I50ddc79529ea5463c67118d668488345ecf069bc
Reviewed-on: https://go-review.googlesource.com/26670
Run-TryBot: Alex Brainman <alex.brainman@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2016-08-31 06:30:26 +00:00
..
addr2line all: use testing.GoToolPath instead of "go" 2016-08-30 22:49:11 +00:00
api all: rename vendored golang.org/x/net packages to golang_org 2016-07-13 18:35:40 +00:00
asm cmd/internal/obj/s390x: add FIDBR and FIEBR instructions 2016-08-26 17:23:16 +00:00
cgo cmd/cgo: error, not panic, if not enough arguments to function 2016-06-21 04:32:04 +00:00
compile cmd/compile/internal/gc: clean up closure.go 2016-08-31 01:31:36 +00:00
cover all: use testing.GoToolPath instead of "go" 2016-08-30 22:49:11 +00:00
dist cmd/dist: build cmd/compile/internal/syntax 2016-08-18 21:33:53 +00:00
doc cmd/doc: ensure functions with unexported return values are shown 2016-08-02 03:24:48 +00:00
fix
go cmd/link, cmd/go: delay linking of mingwex and mingw32 until very end 2016-08-31 06:30:26 +00:00
gofmt gofmt: remove unneeded call to os.Exit 2016-07-11 18:37:12 +00:00
internal cmd/compile, runtime, etc: get rid of constant FP registers 2016-08-30 23:16:17 +00:00
link cmd/link, cmd/go: delay linking of mingwex and mingw32 until very end 2016-08-31 06:30:26 +00:00
nm all: use testing.GoToolPath instead of "go" 2016-08-30 22:49:11 +00:00
objdump all: use testing.GoToolPath instead of "go" 2016-08-30 22:49:11 +00:00
pack all: use testing.GoToolPath instead of "go" 2016-08-30 22:49:11 +00:00
pprof cmd/objdump: implement objdump of .o files 2016-08-24 17:36:59 +00:00
trace cmd/trace: split large traces into parts 2016-05-12 17:53:59 +00:00
vendor cmd/objdump: fix disassembly suffixes 2016-06-23 02:28:18 +00:00
vet all: use testing.GoToolPath instead of "go" 2016-08-30 22:49:11 +00:00