cmd/link/internal/ld,misc/cgo/testcshared: don't -fuse-ld=gold on Android

The NDK is switching to ldd, and will stop including the gold linker.

Change-Id: If74168017c9874134b34010906ab1d94001528b6
Reviewed-on: https://go-review.googlesource.com/c/go/+/206840
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Elias Naur 2019-11-13 11:57:17 +01:00
parent 71c59ee6fc
commit d3c2b1f176
2 changed files with 2 additions and 2 deletions

View file

@ -103,7 +103,7 @@ func testMain(m *testing.M) int {
// TODO(crawshaw): can we do better?
cc = append(cc, []string{"-framework", "CoreFoundation", "-framework", "Foundation"}...)
case "android":
cc = append(cc, "-pie", "-fuse-ld=gold")
cc = append(cc, "-pie")
}
libgodir := GOOS + "_" + GOARCH
switch GOOS {