Page 1 of 1

Building with my own LuaJIT

Posted: Wed Jan 18, 2023 11:02 am
by keithshufelt
Hello!

I recently got an arm64 laptop, and it's great. However, LuaJIT had some bugs which caused frequent segfaults on arm64. Luckily these bugs have been fixed in git, but they haven't yet made it to a release.

I can't figure out how to recompile Love to use the version of LuaJIT which has the fixes applied. Could anyone point me in the right direction? I'm very unfamiliar with autotools etc.

Re: Building with my own LuaJIT

Posted: Wed Jan 18, 2023 8:03 pm
by pgimeno
With cmake, it probably suffices to use:

Code: Select all

cmake -DLUAJIT_INCLUDE_DIR=<path>/src -DLUAJIT_LIBRARY=<path>/src/libluajit.so <rest of cmake command line>
With autotools, I don't know. Maybe ./configure --with-lua=... (see .configure --help)