]> Cypherpunks repositories - gostls13.git/commit
cmd/dist: set buildmode=pie on Android
authorElias Naur <mail@eliasnaur.com>
Sun, 7 Apr 2019 14:58:13 +0000 (16:58 +0200)
committerElias Naur <mail@eliasnaur.com>
Mon, 8 Apr 2019 18:28:43 +0000 (18:28 +0000)
commit81c7beb04eda3ecc97e723793e11c61732ff37e8
tree291bc9aa67762fbd9107355b299b25b5317186cd
parent00530918db29102a0186bcf2b3e699a742d298fa
cmd/dist: set buildmode=pie on Android

Android refuses to run non-PIE binaries, a restriction already
encoded in the cmd/go tool's buildModeInit function. This CL adds
the necessary flags to cmd/dist to make ./make.bash run on an
Android device.

Change-Id: I162084f573befaa41dcb47a2b78448bce5b83d35
Reviewed-on: https://go-review.googlesource.com/c/go/+/170943
Run-TryBot: Elias Naur <mail@eliasnaur.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
src/cmd/dist/build.go