Skip to content

Commit

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

Change-Id: I35dedb52e2b47fe7ffc655d01f22ac05fe830bde
Reviewed-on: https://go-review.googlesource.com/16396
Reviewed-by: David Crawshaw <[email protected]>
  • Loading branch information
hyangah committed Oct 28, 2015
1 parent 26d0b00 commit bcc5c6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cmd/go/build.go
Original file line number Diff line number Diff line change
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 bcc5c6a

Please sign in to comment.