[feature request] Support WASM architecture target by fixing minor code issues breaking Emscripten
Currently I successfully build fontconfig for WebAssembly (under Emscripten) for having an in-browser XeTeX compiler (https://github.com/busytex/busytex).
The only patch needed to compile fontconfig is https://github.com/libass/JavascriptSubtitlesOctopus/blob/master/build/patches/fontconfig/0003-fix-fcstats-emscripten.patch
Otherwise I get a compilation error:
/home/runner/work/busytex/busytex/source/fontconfig/src/fcstat.c:404:6: error: "BUG: No way to figure out with fstatfs()"
# error "BUG: No way to figure out with fstatfs()"
^
1 error generated.
The patch is really minor, so after fixing it, maybe an official recipe could be recommended (my building commands are in https://github.com/busytex/busytex/blob/55d88bf/Makefile#L227).
I think WASM architecture target would become more pertinent in future.