Ship luaJIT statically
Currently, openMW opts to use the system provided luaJIT whenever possible, this leaves openMW at the mercy of system maintainers to both ship luaJIT properly and to agree on a consistent set of compiler flags; neither of which are guaranteed to be the case. It's entirely possible that scripts may appear to run fine in openMW on one distro, but crash and burn on another distro/OS because the two system's luajit packages differ in one way or another. Additionally, this would allow openMW to easily enable the `DLUAJIT_ENABLE_LUA52COMPAT` compiler flag, which brings over several useful features from 5.2 like the `__len` and `__pairs` metamethods, as well as a couple other improvements to core libraries.
issue