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.4 platform.
Download (HTTP): https://anduin.linuxfromscratch.org/BLFS/luajit/luajit-20250816.tar.xz
Download SHA256 Sum: 99aaa3b4c7dfd0d2b79dae6d55d82f4e3956c57c63a02c5322067bbcbf3b2579
Download MD5 sum: 14480377a512931b3cc47297905f893d
Download size: 4,245.5 KB
Estimated disk space required: 8,604.7 KB
Estimated build time: less than 0.5 SBU
Prepare luajit by running the following commands:
make PREFIX=/usr amalg
This package does not come with a test suite.
Now Install the package, 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.