[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: dependencies between C modules, RTLD_GLOBAL
- From: Josh Haberman <jhaberman@...>
- Date: Tue, 12 May 2015 18:42:20 -0700
On Tue, May 12, 2015 at 4:29 PM, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>
> 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.
Since package.loadlib bypasses require(), it seems like this approach
will involve re-implementing the require() logic? Stuff like checking
package.preload, splitting LUA_CPATH on ";", looking in each
directory, etc?