diff '--color=auto' -Naur a/toolkit/moz.configure b/toolkit/moz.configure
--- a/toolkit/moz.configure	2026-09-01 18:05:09.492296661 +0300
+++ b/toolkit/moz.configure	2026-09-01 18:08:20.854288110 +0300
@@ -2900,7 +2900,7 @@
     def wasi_sysroot_flags(wasi_sysroot):
         if wasi_sysroot:
             log.info("Using wasi sysroot in %s", wasi_sysroot)
-            return ["--sysroot=%s" % wasi_sysroot]
+            return ["--sysroot=%s" % wasi_sysroot, "-nodefaultlibs", "-lc", "-lwasi-emulated-process-clocks", "-isystem", "%s/include/wasm32-wasip1/noeh/c++/v1" % wasi_sysroot, "%s/lib/wasm32-wasip1/noeh/libc++.a" % wasi_sysroot, "%s/lib/wasm32-wasip1/noeh/libc++abi.a" % wasi_sysroot, "%%PORTAGE_WORKDIR%%/wasi-sdk-%%WASI_SDK_VER%%-%%WASI_ARCH%%-linux/lib/clang/%%WASI_SDK_LLVM_VER%%/lib/wasm32-unknown-wasip1/libclang_rt.builtins.a"]
         return []
 
     set_config("WASI_SYSROOT", wasi_sysroot)
