projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b3762e
)
cmd/go: Back-port CL 157460043 (pass $CGO_LDFLAGS to linker with the "gccgo" toolchain).
author
Ian Lance Taylor
<ian@gcc.gnu.org>
Sat, 10 Jan 2015 01:01:10 +0000
(
01:01
+0000)
committer
Ian Lance Taylor
<ian@gcc.gnu.org>
Sat, 10 Jan 2015 01:01:10 +0000
(
01:01
+0000)
From-SVN: r219419
libgo/go/cmd/go/build.go
patch
|
blob
|
history
diff --git
a/libgo/go/cmd/go/build.go
b/libgo/go/cmd/go/build.go
index 36216cea40449dd00f6b9975a06f3aa4987f05ed..cead0faa97d13548e2e61d796371c455a8d0c956 100644
(file)
--- 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")