]> Cypherpunks repositories - gostls13.git/commit
cmd/go: always link external test packages first when using gccgo
authorDave Cheney <dave@cheney.net>
Mon, 30 Mar 2015 05:13:39 +0000 (16:13 +1100)
committerDave Cheney <dave@cheney.net>
Wed, 1 Apr 2015 09:10:59 +0000 (09:10 +0000)
commit9d0239771a2ddd77be0ba64c2782e1328a378190
tree8bb11a7fc1b606c39938b17b1532dc9030616765
parent9c0375277ca88df0065fe442242a110201029793
cmd/go: always link external test packages first when using gccgo

This CL is an amagamation of several fixes Canonical have made on their
fork of the cmd/go tool (packaged as gccgo-go.deb on Ubuntu 14.04+).

Additionally this CL brings gccgoToolchain.ldi() up to date with the version
that will ship in gccgo-5.0. As gccgo is most likely to be used with its
own version of the go tool that it supples it makes good sense that the libgo
version should dictate the contents of gccgotoolchain.ld()

Please see https://codereview.appspot.com/222890043/ for more details on the
issues fixed.

Change-Id: Icf7deb43f8e80b424757f1673e6bca7a0aa2a1ac
Reviewed-on: https://go-review.googlesource.com/8250
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/cmd/go/build.go
src/cmd/go/pkg.go
src/cmd/go/test.go