mirror of https://github.com/golang/go.git
cmd/go: pass $CGO_LDFLAGS to linker with the "gccgo" toolchain.
LGTM=iant R=iant, minux CC=golang-codereviews, golang-dev https://golang.org/cl/157460043
This commit is contained in:
parent
fdf458436a
commit
ffa5e5f7fc
|
|
@ -1945,6 +1945,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")
|
||||
|
|
|
|||
Loading…
Reference in New Issue