File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ IOS_BUILD_DIR := $(MOBILE_BUILD_DIR)/ios
1818IOS_BUILD := $(IOS_BUILD_DIR ) /Lndmobile.xcframework
1919ANDROID_BUILD_DIR := $(MOBILE_BUILD_DIR ) /android
2020ANDROID_BUILD := $(ANDROID_BUILD_DIR ) /Lndmobile.aar
21+ # For Android, set max page size to 16KB to support devices using 16KB memory pages.
22+ ANDROID_EXTLDFLAGS := -extldflags=-Wl,-z,max-page-size=16384
2123
2224COMMIT := $(shell git describe --tags --dirty)
2325
@@ -447,7 +449,7 @@ macos: mobile-rpc
447449android : mobile-rpc
448450 @$(call print, "Building Android library ($(ANDROID_BUILD ) ) ." )
449451 mkdir -p $(ANDROID_BUILD_DIR )
450- $(GOMOBILE_BIN ) bind -target=android -androidapi 21 -tags=" mobile appengine autopilotrpc chainrpc invoicesrpc neutrinorpc peersrpc signrpc wtclientrpc watchtowerrpc routerrpc walletrpc verrpc kvdb_sqlite" -ldflags " $( RELEASE_LDFLAGS) " -v -o $(ANDROID_BUILD ) $(MOBILE_PKG )
452+ $(GOMOBILE_BIN ) bind -target=android -androidapi 21 -tags=" mobile appengine autopilotrpc chainrpc invoicesrpc neutrinorpc peersrpc signrpc wtclientrpc watchtowerrpc routerrpc walletrpc verrpc kvdb_sqlite" -ldflags " $( RELEASE_LDFLAGS) $( ANDROID_EXTLDFLAGS ) " -v -o $(ANDROID_BUILD ) $(MOBILE_PKG )
451453
452454# ? mobile: Build mobile RPC stubs and project templates for iOS and Android
453455mobile : ios android
You can’t perform that action at this time.
0 commit comments