lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi, everyone. I have been doing some research on the possibility of rewriting my system's init scripts in Lua (because I think it could do a way better job than shell). It seems to me that it would be best to have a statically-linked copy of Lua as /bin/lua-static to avoid complications when booting, with luaposix (and maybe some other stuff) built in. However, I have practically zero experience with building stuff from source besides the standard "./configure; make && make install". So, a few questions:

- How would I build a statically-linked Lua interpreter binary?

- How could I build a library (in this case, luaposix) into the interpreter such that it could be required without loading the extra .so?

- Would it still be possible to load shared libraries from such an executable, or would I have to build everything into it?

--
Thanks, Matthew Frazier