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:
parent
51389df416
commit
82d11f2f29
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue