C++17 is default on MacOS after Catalina, so statically linking against llvm is no longer needed.
Use pkg-config for nitrogfx and libpng.
MacOS has no elf.h built-in, so the repo provides this now.
Fix a crash presumably caused by an overflow with wine32on64 and command line arguments; A list of objects is placed in $(ELF).objlist and the linker is invoked with @target.elf.objlist.
mwasmarm_patcher has an off-by-one in a sprintf which tripped stack cookies on ARM64, but not x86_64.
Same as pokeheartgold, tested on an ARM64 Mac.
Summary of changes:
gsed
instead ofsed
.pkg-config
fornitrogfx
and libpng.$(ELF).objlist
and the linker is invoked with@target.elf.objlist
.mwasmarm_patcher
has an off-by-one in a sprintf which tripped stack cookies on ARM64, but not x86_64.