mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
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:
parent
79b32c7601
commit
ea6a25f594
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user