From bb87e18039c7e4173f62a6a3276484254daef7aa Mon Sep 17 00:00:00 2001 From: Krzysztof Zapior Date: Thu, 10 Oct 2024 08:41:52 +0200 Subject: [PATCH] NVA-7973_android_page_size_16kb Signed-off-by: Krzysztof Zapior --- build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.rs b/build.rs index 9477e9fe7..9ba263ce0 100644 --- a/build.rs +++ b/build.rs @@ -61,7 +61,7 @@ fn main() -> Result<()> { if target_os == "android" { let pkg_name = env!("CARGO_PKG_NAME"); let soname = format!("lib{}.so", pkg_name); - println!("cargo:rustc-cdylib-link-arg=-Wl,-soname,{}", soname); + println!("cargo:rustc-cdylib-link-arg=-Wl,-z,max-page-size=16384,-soname,{}", soname); } #[cfg(windows)]