From 1497fd4f8ce3f013f685c12b8e147b7f70bddb4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zolt=C3=A1n=20Papp?= Date: Wed, 26 Nov 2025 18:47:22 +0100 Subject: [PATCH] Support 16Kb pages --- build-android-lib.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build-android-lib.sh b/build-android-lib.sh index 5cdb524..ea10750 100755 --- a/build-android-lib.sh +++ b/build-android-lib.sh @@ -62,7 +62,7 @@ gomobile init CGO_ENABLED=0 gomobile bind \ -o "$app_path/gomobile/netbird.aar" \ -javapkg=io.netbird.gomobile \ - -ldflags="-checklinkname=0 -X golang.zx2c4.com/wireguard/ipc.socketDirectory=/data/data/io.netbird.client/cache/wireguard -X github.com/netbirdio/netbird/version.version=$version" \ + -ldflags="-linkmode=external -extldflags=-Wl,-z,max-page-size=16384 -checklinkname=0 -X golang.zx2c4.com/wireguard/ipc.socketDirectory=/data/data/io.netbird.client/cache/wireguard -X github.com/netbirdio/netbird/version.version=$version" \ "$(pwd)/client/android" cd - > /dev/null