From 69001c115100a19955249bfb6ec45ad332cd5ae8 Mon Sep 17 00:00:00 2001 From: Andrew D. France Date: Tue, 22 Jul 2025 23:27:06 -0500 Subject: Compat53 library uses the floor function, which is part of the C math library (libm); removed the incorrect luaopen_compat53 call that was still present --- premake5.lua | 3 ++- src/lush.c | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/premake5.lua b/premake5.lua index 20dfa8a..3ec299a 100644 --- a/premake5.lua +++ b/premake5.lua @@ -13,7 +13,8 @@ local lua_lib_path = "/usr/lib" if os.findlib("lua5.4") then lua_inc_path = "/usr/include/lua5.4" lua_lib_path = "/usr/lib/5.4" - links({ "lua5.4" }) +-- Readline for better interactive support, dl for dynamic loading, and m for the math library dependency + links({ "lua5.4", "readline", "dl", "m" }) else links({ "lua" }) end diff --git a/src/lush.c b/src/lush.c index 8beed6a..88d2998 100644 --- a/src/lush.c +++ b/src/lush.c @@ -1510,7 +1510,6 @@ int main(int argc, char *argv[]) { // Pop package and preload tables lua_pop(L, 2); // --- End pre-loading --- - luaopen_compat53(L); lua_register_api(L); lua_run_init(L); -- cgit v1.2.3-59-g8ed1b