From 0a590d0bc40cbc4645681ef9f66babb6d6afdb21 Mon Sep 17 00:00:00 2001 From: Pip Cet Date: Tue, 19 Nov 2024 20:13:05 +0000 Subject: [PATCH] Ensure Android library builds include a DT_NEEDED entry for libluajit Should fix https://github.com/termux/termux-packages/issues/22328. Should fix https://github.com/mlua-rs/mlua/issues/471 --- mlua-sys/src/lua51/lua.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/mlua-sys/src/lua51/lua.rs b/mlua-sys/src/lua51/lua.rs index f222b383..009c8377 100644 --- a/mlua-sys/src/lua51/lua.rs +++ b/mlua-sys/src/lua51/lua.rs @@ -89,6 +89,7 @@ pub type lua_Alloc = unsafe extern "C-unwind" fn(ud: *mut c_void, ptr: *mut c_void, osize: usize, nsize: usize) -> *mut c_void; #[cfg_attr(all(windows, raw_dylib), link(name = "lua51", kind = "raw-dylib"))] +#[cfg_attr(all(target_os = "android", feature = "luajit"), link(name = "luajit-5.1"))] extern "C-unwind" { // // State manipulation