diff options
| author | 2025-07-22 23:27:06 -0500 | |
|---|---|---|
| committer | 2025-07-22 23:27:06 -0500 | |
| commit | 69001c115100a19955249bfb6ec45ad332cd5ae8 (patch) | |
| tree | 9f44f5bba12357eb70221fa132767213f1b6331f | |
| parent | Fixed the header path for compat: preload compat modules for lua within lua-i... (diff) | |
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
| -rw-r--r-- | premake5.lua | 3 | ||||
| -rw-r--r-- | 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 @@ -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); |
