diff --git a/.unreleased/LLT-5682_android_page_size_16kB b/.unreleased/LLT-5682_android_page_size_16kB new file mode 100644 index 000000000..e69de29bb 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)]