lua-users home
lua-l archive

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


> Alternatively, I could replace `-ldl` with providing my own `dlopen`, which
> would `assert` that it shouldn't have been called, indicating that`require`
> is trying to load a strange C module, and kill the program (acceptable in
> this scenario). Presumably that would fix the linker error and be "safe".
> Does this workaround make sense?

Yes. This is more or less what Lua itself does if you compile it without
defining LUA_USE_DLOPEN.

-- Roberto