luajit + dependencies in a single executable

  • From: Cosmin Apreutesei <cosmin.apreutesei@xxxxxxxxx>
  • To: luajit@xxxxxxxxxxxxx
  • Date: Sun, 2 Nov 2014 03:51:16 +0200

Hi everyone,

I'm looking for options to bundle a bunch of static libs, Lua/C libs
and pure Lua libs all a single luajit executable so that:

 - require() looks for bundled Lua and Lua/C modules (and still looks
in lua path/cpath)
 - symbols from the static libs are available in ffi.C (or somehow)
 - luajit starts with `-lmain` if found and fallbacks to repl.

I want to solve this for mingw, linux/gcc and osx/llvm, x86 and x64.

Anyone tried this before?

Any ideas you could throw my way would be greatly appreciated.

Thanks,
Cosmin.

Other related posts: