diff options
author | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-01-10 01:01:10 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@gcc.gnu.org> | 2015-01-10 01:01:10 +0000 |
commit | bb782ca3ec1adb8b273f52d28c2ce54185acaaca (patch) | |
tree | d4ce0d345eb7204e4742783b354f5454d3a9af8f /libgo | |
parent | 6b3762e4c2a27525a07b4917a55c87136b0fade3 (diff) | |
download | gcc-bb782ca3ec1adb8b273f52d28c2ce54185acaaca.zip gcc-bb782ca3ec1adb8b273f52d28c2ce54185acaaca.tar.gz gcc-bb782ca3ec1adb8b273f52d28c2ce54185acaaca.tar.bz2 |
cmd/go: Back-port CL 157460043 (pass $CGO_LDFLAGS to linker with the "gccgo" toolchain).
From-SVN: r219419
Diffstat (limited to 'libgo')
-rw-r--r-- | libgo/go/cmd/go/build.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libgo/go/cmd/go/build.go b/libgo/go/cmd/go/build.go index 36216ce..cead0fa 100644 --- a/libgo/go/cmd/go/build.go +++ b/libgo/go/cmd/go/build.go @@ -1895,6 +1895,7 @@ func (tools gccgoToolchain) ld(b *builder, p *Package, out string, allactions [] } ldflags = append(ldflags, afiles...) ldflags = append(ldflags, cgoldflags...) + ldflags = append(ldflags, envList("CGO_LDFLAGS", "")...) ldflags = append(ldflags, p.CgoLDFLAGS...) if usesCgo && goos == "linux" { ldflags = append(ldflags, "-Wl,-E") |