--- texlive-20210324-source/libs/luajit/configure.orig	2021-03-24 16:06:48.000000000 +0000
+++ texlive-20210324-source/libs/luajit/configure	2021-08-17 19:23:17.799436012 +0000
@@ -14214,7 +14214,11 @@
   echo '-DLJ_ARCH_ENDIAN=LUAJIT_BE' >>native_flags
 fi
 elif grep 'LJ_TARGET_MIPS ' conftest.i >/dev/null 2>&1; then :
-  LJARCH=mips
+  if grep 'LJ_TARGET_MIPS64 ' conftest.i >/dev/null 2>&1; then :
+    LJARCH=mips64
+  else
+    LJARCH=mips
+  fi
          if grep 'MIPSEL ' conftest.i >/dev/null 2>&1; then :
   echo '-D__MIPSEL__=1' >>native_flags
 fi
