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