diff options
| author | David Crawshaw <crawshaw@golang.org> | 2016-08-25 21:06:10 -0400 |
|---|---|---|
| committer | David Crawshaw <crawshaw@golang.org> | 2016-08-26 20:06:58 +0000 |
| commit | 8f3c8a33fad917abb45ef98b3a1cd34fe9715370 (patch) | |
| tree | 0b1c01640a08f3562720b5cc3bac83abeedfc0f1 /src/cmd/link/internal/amd64/obj.go | |
| parent | 7f27f1dfdd81c978d4868917d7622e09b288ecb0 (diff) | |
| download | go-8f3c8a33fad917abb45ef98b3a1cd34fe9715370.tar.xz | |
cmd/link: make DynlinkingGo a method
This will allow it to depend on whether plugin.Open is a symbol to be
linked in.
Change-Id: Ie9aa4216f2510fe8b10bc4665c8b19622b7122ea
Reviewed-on: https://go-review.googlesource.com/27819
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/cmd/link/internal/amd64/obj.go')
| -rw-r--r-- | src/cmd/link/internal/amd64/obj.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd/link/internal/amd64/obj.go b/src/cmd/link/internal/amd64/obj.go index 9e6cdd72ea..5c1fafd56f 100644 --- a/src/cmd/link/internal/amd64/obj.go +++ b/src/cmd/link/internal/amd64/obj.go @@ -89,7 +89,7 @@ func archinit(ctxt *ld.Link) { ld.Linkmode = ld.LinkInternal } - if ld.Buildmode == ld.BuildmodeCArchive || ld.Buildmode == ld.BuildmodeCShared || ld.DynlinkingGo() { + if ld.Buildmode == ld.BuildmodeCArchive || ld.Buildmode == ld.BuildmodeCShared || ctxt.DynlinkingGo() { ld.Linkmode = ld.LinkExternal } |
