Skip to content
This repository has been archived by the owner on Nov 22, 2019. It is now read-only.

Commit

Permalink
cmd/go: allow -buildmode=pie for android/amd64.
Browse files Browse the repository at this point in the history
For golang/go#10743 golang/go#10807

Change-Id: I35dedb52e2b47fe7ffc655d01f22ac05fe830bde
Reviewed-on: https://go-review.googlesource.com/16396
Reviewed-by: David Crawshaw <crawshaw@golang.org>
  • Loading branch information
hyangah committed Oct 28, 2015
1 parent a08f54f commit 53c02be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build.go
Expand Up @@ -361,7 +361,7 @@ func buildModeInit() {
ldBuildmode = "c-shared"
case "default":
switch platform {
case "android/arm":
case "android/arm", "android/amd64":
codegenArg = "-shared"
ldBuildmode = "pie"
default:
Expand All @@ -375,7 +375,7 @@ func buildModeInit() {
fatalf("-buildmode=pie not supported by gccgo")
} else {
switch platform {
case "android/arm", "linux/amd64":
case "android/arm", "linux/amd64", "android/amd64":
codegenArg = "-shared"
default:
fatalf("-buildmode=pie not supported on %s\n", platform)
Expand Down

0 comments on commit 53c02be

Please sign in to comment.