]> Cypherpunks repositories - gostls13.git/commit
cmd/go: Use exported CgoLDFlags when compiler=gccgo
authorErik Westrup <erik.westrup@gmail.com>
Wed, 26 Mar 2014 22:23:31 +0000 (15:23 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 26 Mar 2014 22:23:31 +0000 (15:23 -0700)
commit881d693c8603510bee3b88205a90ca97942ee0b9
treec5c96915ec03e7b252d4f7e3fcbb7895b4d56f38
parenta6adc19ea8179e7878169df50340fee406be2e9d
cmd/go: Use exported CgoLDFlags when compiler=gccgo

If you compile a program that has cgo LDFLAGS directives, those are exported to an environment variable to be used by subsequent compiler tool invocations. The linking phase when using the gccgo toolchain did not consider the envvar CGO_LDFLAGS's linking directives resulting in undefined references when using cgo+gccgo.

Fixes #7573

LGTM=iant
R=golang-codereviews, iant
CC=golang-codereviews
https://golang.org/cl/80780043
src/cmd/go/build.go
src/cmd/go/test.bash