Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

66.2. luajit-20260914

Just-in-time compiler and drop-in replacement for Lua

20260914-1 · MIT · 1.1 SBU · 2.3 MiB, 34 files · 40_lang, 45 of 186 · ports/core/lang/luajit

Homepage: https://github.com/openresty/luajit2

Depends on: nothing a recipe names.

Required by (7): cantor, love, luanti, mpv, obs-studio, powder-toy, swayimg.

Sources: luajit-20260914.tar.gz (1.1 MiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/40_lang/phase.env && kpkg install luajit'

build.sh:

xcflags="-DLUAJIT_ENABLE_LUA52COMPAT -DLUAJIT_NUMMODE=2"
make amalg PREFIX=/usr XCFLAGS="$xcflags" CCDEBUG= TARGET_STRIP=:
make PREFIX=/usr DESTDIR=$PKG install

Programs: luajit, luajit-2.1.1789376628.

Libraries: libluajit-5.1.a, libluajit-5.1.so.

Directories: /usr/include/luajit-2.1, /usr/lib/lua/5.1, /usr/share/licenses/luajit, /usr/share/lua/5.1, /usr/share/luajit-2.1.