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 gperfConfigure:
./configure --target=mips-nintendo-nu64 --prefix=/opt/cross --with-gnu-as --disable-gprof --disable-gdb --disable-werror --host=i386-pc-linux --build=i386-pc-linuxMake:
make cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -m32 -static"
The
make
stage may fail, but this is fine as long as thecc1
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-darwinMake:
make cpp cc1 xgcc cc1plus g++ CFLAGS="-std=gnu89 -Wno-return-type -Wno-error -Wno-implicit-function-declaration"
The
make
stage may fail, but this is fine as long as thecc1
binary is created successfully.