1
0
mirror of https://github.com/golang/go synced 2024-11-24 03:50:18 -07:00

cmd/link/internal/ld: force external linking for mips64x with cgo

cgo internal linking is not supported yet (issue #14449).

Change-Id: Ic968916383d77b7f449db8f230c928a1e81939e0
Reviewed-on: https://go-review.googlesource.com/19807
Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
Cherry Zhang 2016-04-27 22:18:33 -04:00 committed by Minux Ma
parent b6687c8933
commit dcd613862b

View File

@ -571,7 +571,8 @@ func loadlib() {
// cmd/7l doesn't support cgo internal linking
// This is https://golang.org/issue/10373.
if iscgo && goarch == "arm64" {
// mips64x doesn't support cgo internal linking either (golang.org/issue/14449)
if iscgo && (goarch == "arm64" || goarch == "mips64" || goarch == "mips64le") {
Linkmode = LinkExternal
}