gcc-papermario/PAPERMARIO.md
2021-07-14 18:43:21 +09:00

1021 B

To build the 32-bit static cc1 in the papermario repo on Ubuntu, use:

Install dependencies:

apt-get update
apt-get install build-essential bison file gcc-multilib gperf

Configure:

./configure --target=mips-nintendo-nu64 --prefix=/opt/cross --disable-gprof --disable-gdb --disable-werror --host=i386-pc-linux --build=i386-pc-linux

Make:

make CFLAGS="-std=gnu89 -m32 -static"

The make stage may fail, but this is fine as long as the cc1 binary is created successfully.

To build the 64-bit cc1 for macOS, use:

Configure:

./configure --target=mips-nintendo-nu64 --prefix=/opt/cross --disable-gprof --disable-gdb --disable-werror --host=i386-apple-darwin --build=i386-apple-darwin

Make:

make CFLAGS="-std=gnu89 -Wno-return-type -Wno-error -Wno-implicit-function-declaration"

The make stage may fail, but this is fine as long as the cc1 binary is created successfully.