Vladimir Dronnikov wrote: > > The dynamic library loader (-ldl) generally doesn't work with > > static builds (some toolchains give you a warning if you try). > > That is a known limitation and not specific to LuaJIT. > > If I build statically the latest Lua-5.2.0, I get no SEGV. Do Lua and > LuaJIT require() things differently? It would fail and/or crash as soon as you'd try to load a C module. LuaJIT checks the global symbol space for embedded bytecode modules first, so you discover the problem earlier. --Mike