Index: src/third_party/mozjs/gen-config.sh
--- src/third_party/mozjs/gen-config.sh.orig
+++ src/third_party/mozjs/gen-config.sh
@@ -1,4 +1,4 @@
-#!/bin/bash
+#!/bin/sh
 
 set -e
 set -v
@@ -50,6 +50,9 @@ case "$_Path" in
     "platform/x86_64/openbsd")
         _CONFIG_OPTS="--host=x86_64-openbsd"
     ;;
+    "platform/aarch64/openbsd")
+        _CONFIG_OPTS="--host=aarch64-openbsd"
+    ;;
     "platform/x86_64/windows")
         _CONFIG_OPTS="--host=x86_64-windows-msvc"
     ;;
@@ -111,7 +114,7 @@ CFLAGS="$CFLAGS -D__STDC_FORMAT_MACROS" \
     --disable-wasm-moz-intgemm \
     "$_CONFIG_OPTS"
 
-make recurse_export
+gmake recurse_export
 
 cd ../../../..
 
