]> Cypherpunks repositories - gostls13.git/commit
cmd/link: remove -rdynamic if -static appears in cgo LDFLAGS
authorIan Lance Taylor <iant@golang.org>
Tue, 3 Jul 2018 17:16:03 +0000 (10:16 -0700)
committerIan Lance Taylor <iant@golang.org>
Wed, 4 Jul 2018 00:15:55 +0000 (00:15 +0000)
commitad4e6370fe801c7d7b97e893b87c7f3d5b05f955
treeba55c39d665fd229117c05079c9a9e493a240656
parentabaf53fb8e7dfbb9d513745e8280488b159ceb1e
cmd/link: remove -rdynamic if -static appears in cgo LDFLAGS

We already remove -rdynamic if -static appears in -extldflags.
Extend that to apply to CGO_LDFLAGS and #cgo LDFLAGS as well.

Updates #26197

Change-Id: Ibb62d1b20726916a12fd889acb05c1c559a5ace2
Reviewed-on: https://go-review.googlesource.com/122135
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/link/internal/ld/lib.go