> On 20 Feb 2020, at 03:05, Coda Highland <email@example.com> wrote:
> Also embedding LuaJIT on macOS is a headache.
Really? I tend not to use LuaJIT, but I’ve done this before and I seem to recall it just needed pagezero_size and image_base linker flags to work. What else don’t I know that might bite me?
Those linker flags only work for applications. If you're linking LuaJIT into a library/plugin and you don't control the application loading it, you're out of luck. That's why I had to abandon it.
Mike Pall said on the LuaJIT mailing list, last week, that this is obsolete as of the current v2.1 branch, which uses GC64 mode by default.
I admittedly haven't been able to get this to work in my own application, but I'm confident that's user error...