Please correct me, but I think LuaJIT is still only a 32 bit library, so Minetest would be limited to 32 bit builds.
Anyhow, a somewhat hacky way to build Minetest with LuaJIT (precompiled static lib) would be to modify
src/CMakeLists.txt for minetest and minetestserver executable:
- Code: Select all
if(LUAJIT)
target_link_libraries(
${LUAJIT}
)
else(LUAJIT)
target_link_libraries(
${LUA_LIBRARY}
)
endif(LUAJIT)
Please notice that the bundled liblua will be built but not used if -DLUAJIT=../LuaJIT-1.1.8/liblua.a is used.
configuring on linux (64bit system) with:
- Code: Select all
export LDFLAGS=-m32
cmake . -DBUILD_CLIENT=1 -DBUILD_SERVER=1 -DCMAKE_BUILD_TYPE=Release \
-DENABLE_CURL=1 -DENABLE_FREETYPE=1 -DENABLE_GETTEXT=1 -DENABLE_SOUND=1 \
-DRUN_IN_PLACE=1 -DWARN_ALL=1 \
-DLUAJIT=../LuaJIT-1.1.8/liblua.a \
-DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32
and finaly build with:
- Code: Select all
gmake -j5
But this is untested, since I have no 32 bit libs on my system.