From 82d11f2f29c434ab00e9a4cdb49b4002600b9899 Mon Sep 17 00:00:00 2001 From: David Crawshaw Date: Tue, 13 Oct 2015 10:19:25 -0700 Subject: [PATCH] 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 --- cmd/gomobile/init.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/gomobile/init.go b/cmd/gomobile/init.go index 39619343e..9e2adcbde 100644 --- a/cmd/gomobile/init.go +++ b/cmd/gomobile/init.go @@ -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 {