lua-users home
lua-l archive

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


> But unfortunately it is not possible because require() loads C libraries
> with RTLD_LOCAL.

Since Lua 5.2, package.loadlib accepts an optional argument that allows
you to use RTLD_GLOBAL. See
	http://www.lua.org/manual/5.3/manual.html#pdf-package.loadlib

So the answer is to use package.loadlib directly.