Skip to content

Commit

Permalink
cmd/gomobile: build android stdlib as PIC
Browse files Browse the repository at this point in the history
Fixes golang/go#12581

Change-Id: I9e462b76037f0f89f1d3e59b9aef899d21de925a
Reviewed-on: https://go-review.googlesource.com/15803
Reviewed-by: Hyang-Ah Hana Kim <[email protected]>
  • Loading branch information
crawshaw committed Oct 13, 2015
1 parent 51389df commit 82d11f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/gomobile/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 82d11f2

Please sign in to comment.