Ah, and if it helps, LuaJIT was built with the following command: make PREFIX=$(realpath ./prefix) BUILDMODE=static HOST_CC="gcc -m32" CROSS=/opt/mxe/usr/bin/i686-pc-mingw32- TARGET_SYS=Windows clean amalg and the resulting static lib was copied to: /opt/mxe/usr/i686-pc-mingw32/lib/libluajit.a -- Regards, Konstantin