cmd/gomobile: build android stdlib as PIC

Fixes golang/go#12581

Change-Id: I9e462b76037f0f89f1d3e59b9aef899d21de925a
Reviewed-on: https://go-review.googlesource.com/15803
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
David Crawshaw 2015-10-13 10:19:25 -07:00
parent 51389df416
commit 82d11f2f29
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ func runInit(cmd *command) error {
// Install standard libraries for cross compilers.
start := time.Now()
if err := installStd(androidArmEnv); err != nil {
if err := installStd(androidArmEnv, "-buildmode=c-shared"); err != nil {
return err
}
if err := installDarwin(); err != nil {