Revert "cmd/gomobile: avoid -buildmode for go install std"

This reverts commit b84795b494.

See golang/go#13246

Change-Id: Ie8b89a9ac6e5b6906b3a4de21122d694cf7a2d0a
Reviewed-on: https://go-review.googlesource.com/16917
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
This commit is contained in:
Hyang-Ah Hana Kim 2015-11-14 03:15:22 +00:00
parent daecc566fd
commit 4f9c718489
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, "-gcflags=-shared", "-ldflags=-shared"); err != nil {
if err := installStd(androidArmEnv, "-buildmode=c-shared"); err != nil {
return err
}
if err := installDarwin(); err != nil {