[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Statically linked executables
- From: Roberto Ierusalimschy <roberto@...>
- Date: Tue, 27 Jun 2017 17:31:49 -0300
> 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