cmd/ebitenmobile: Add linker options

This change suppresses the linker error that the .so file is not
found.

Fixes #932
This commit is contained in:
Hajime Hoshi 2019-09-22 20:58:01 +09:00
parent 79b32c7601
commit ea6a25f594

View File

@ -109,6 +109,13 @@ func main() {
flagset.Parse(args[1:])
// Add ldflags to suppress linker errors (#932).
// See https://github.com/golang/go/issues/17807
if buildLdflags == "" {
buildLdflags += " "
}
buildLdflags += "-extldflags=-Wl,-soname,libgojni.so"
if err := prepareGomobileCommands(); err != nil {
log.Fatal(err)
}