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)]