mirror of
https://github.com/golang/go
synced 2024-11-17 20:04:47 -07:00
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/14143 Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
parent
e9089e4ab6
commit
f7b66fffc5
2
src/cmd/dist/test.go
vendored
2
src/cmd/dist/test.go
vendored
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user