LuaDist relies on using liblua.dylib for all its modules with the same name for both Lua 5.1 and Lua 5.2 interpreters. This presents an issue for ZBS as it needs not only to refer to a proper liblua.dylib, but also to avoid loading two interpreters as its own interperter loads its own library. To resolve this, liblua.dylib doesn't export any symbols (it's a dummy library), but it needs to be present to satisfy dyld dependency (as some of the libraries and LuaDist build process are outside of our control). All the other Lua symbols are already available in memory, but to make LuaDist libraries to use them, we enforce flat namespace.
4.0 KiB
4.0 KiB