[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: dependencies between C modules, RTLD_GLOBAL
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 12 May 2015 20:29:38 -0300
> 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.