Hi lsit/Claude,
attached is a toy variation of pdlua's "Makefile.static" which builds pdlua statically linked to LuaJIT, the optimizing JIT compiler for Lua. Only tested on Linux. LuaJIT can be quite a performance boost. It's probably good to install the jit/opt*.lua modules as well according to http://luajit.org/luajit_install.html
Ciao