Getting the same issue attempting to build an EXE for Windows.
g++: error: unrecognized command line option ‘-mwindows’
make: *** [Makefile:702: build/us_pc/sm64.us.f3dex2e.exe] Error 1
Does anyone know how to fix this? I've built it on Ubuntu 20.04 but can't build an EXE file.