forked from joejulian/gio-cmd
gogio: [Android] support 16kB page sizes, required for Android 15+
Previously, Gio crashes on 16KB page-size enable version of Android 15. Also, Google Play will require 16KB compatible apps by November 2025. This patch changes the page-size of C/CGO to 64KB, which is compatible with 4KB, 16KB and 64KB. That is also the same value used by Golang Compiler itself. Signed-off-by: inkeliz <inkeliz@inkeliz.com> Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
@@ -217,7 +217,7 @@ func compileAndroid(tmpDir string, tools *androidTools, bi *buildInfo) (err erro
|
||||
cmd := exec.Command(
|
||||
"go",
|
||||
"build",
|
||||
"-ldflags=-w -s "+bi.ldflags,
|
||||
"-ldflags=-w -s -extldflags \"-Wl,-z,max-page-size=65536\" "+bi.ldflags,
|
||||
"-buildmode=c-shared",
|
||||
"-tags", bi.tags,
|
||||
"-o", libFile,
|
||||
|
||||
Reference in New Issue
Block a user