Although there's some other confusing stuff:
Code:
$ wine luajit.exe
0009:err:module:import_dll Library libgcc_s_sjlj-1.dll (which is needed by L"Z:\\home\\frans\\src\\kobo\\koreader\\base\\thirdparty\\luajit\\build\\i686-w64-mingw32\\luajit-prefix\\src\\luajit\\src\\lua51.dll") not found
0009:err:module:import_dll Library lua51.dll (which is needed by L"Z:\\home\\frans\\src\\kobo\\koreader\\base\\thirdparty\\luajit\\build\\i686-w64-mingw32\\luajit-prefix\\src\\luajit\\src\\luajit.exe") not found
0009:err:module:attach_dlls Importing dlls for L"Z:\\home\\frans\\src\\kobo\\koreader\\base\\thirdparty\\luajit\\build\\i686-w64-mingw32\\luajit-prefix\\src\\luajit\\src\\luajit.exe" failed, status c0000135
Because doesn't it say -static-libgcc?
https://github.com/koreader/koreader...defs#L498-L500
Anyway, works fine after copying it over from /usr/lib/gcc/i686-w64-mingw32/8.3-win32/libgcc_s_sjlj-1.dll