It is very similar to srlua [1] by Luiz, i.e. it produces an executable with an embedded Lua script.
However, here [2] it can be found a version with some library too (Lua socket, filesystem, etc), all in a single binary. I think it is useful also as a template to add other needed library (it uses the preload method that was suggested some post ago in this thread)
Mimmo Mane