Commit f7b66fff authored by Michael Hudson-Doyle's avatar Michael Hudson-Doyle

cmd/dist, cmd/link: force external linking for shared libs on arm

Also run testcshared.

Fixes #12425

Change-Id: I5baea8d772d3462f945aab96260b4197dbb20c0a
Reviewed-on: https://go-review.googlesource.com/14143Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent e9089e4a
......@@ -570,7 +570,7 @@ func (t *tester) supportedBuildmode(mode string) bool {
case "c-shared":
// TODO(hyangah): add linux-386.
switch pair {
case "linux-amd64", "darwin-amd64", "android-arm":
case "linux-amd64", "darwin-amd64", "android-arm", "linux-arm":
return true
}
return false
......
......@@ -86,6 +86,10 @@ func archinit() {
ld.Linkmode = ld.LinkInternal
}
if ld.Buildmode == ld.BuildmodeCArchive || ld.Buildmode == ld.BuildmodeCShared || ld.DynlinkingGo() {
ld.Linkmode = ld.LinkExternal
}
switch ld.HEADTYPE {
default:
if ld.Linkmode == ld.LinkAuto {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment