I am trying to replace an existing Go build with Gomobile. However, it seems there is no way to compile for ARMv5 with Gomobile. The old build is doing something like this:
export GOARCH=arm
export GOARM=5
go build golang.org/x/mobile/example/bind/hello
gobind {
pkg = "golang.org/x/mobile/example/bind/hello"
GOARCH="arm"
}
This places the library in armeabi-v7a folder in the apk, which indicates that it is an ARMv7 binary.
Is there any way to generate an ARMv5 library instead? I tried to set GOARM=5
in the gobind block of build.gradle, but that results in an error:
Could not set unknown property 'GOARM' for object of type org.golang.mobile.GobindExtension.