luastatic is a command line tool that builds a standalone executable from a Lua
program. The executable runs on systems that do not have Lua installed. Lua 5.1, 5.2,
5.3, 5.4, and LuaJIT are supported.
luastatic main.lua[1] require.lua[2] liblua.a[3] library.a[4] -I/include/lua[5] [6]
[1]: The entry point to the Lua program
[2]: One or more required Lua source files
[3]: The path to the Lua interpreter static library
[4]: One or more static libraries for a required Lua binary module
[5]: The path to the directory containing lua.h
[6]: Additional arguments are passed to the C compiler
请发表评论