mirror of
https://github.com/pmret/gcc-papermario.git
synced 2024-11-08 20:02:47 +01:00
1.1 KiB
1.1 KiB
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 --with-gnu-as --disable-gprof --disable-gdb --disable-werror --host=i386-pc-linux --build=i386-pc-linux
Make:
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-darwin
Make:
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.