The luajit package contains a Just-In-Time compiler for Lua. It is often used as scripting middleware, and it is high performance while also having a low memory footprint.
This package is known to build and work properly using an LFS 12.3 platform.
Download (HTTP): https://anduin.linuxfromscratch.org/BLFS/luajit/luajit-20250212.tar.xz
Download MD5 sum: ac5d07d31cc46d97e577764e402921c7
Download size: 728 KB
Estimated disk space required: 9.0 MB
Estimated build time: 0.2 SBU
Install luajit by running the following commands:
make PREFIX=/usr amalg
This package does not come with a test suite.
Now, as the root user:
make PREFIX=/usr install && rm -v /usr/lib/libluajit-5.1.a
amalg: This ensures an amalgamated build,
i.e. the LuaJIT core is compiled as one huge C file, allowing GCC
to generate faster and shorter code.