gcc-papermario/PAPERMARIO.md

29 lines
1.1 KiB
Markdown
Raw Normal View History

To build the 32-bit static cc1 in the [papermario](https://github.com/ethteck/papermario) repo on Ubuntu, use:
2020-10-20 22:25:30 +02:00
> Install dependencies:
> ```bash
> apt-get update
> apt-get install build-essential bison file gcc-multilib gperf
> ```
> Configure:
> ```bash
> ./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:
> ```bash
> make cpp cc1 xgcc cc1plus g++ 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:
> ```bash
> ./configure --target=mips-nintendo-nu64 --prefix=/opt/cross --disable-gprof --disable-gdb --disable-werror --host=i386-apple-darwin --build=i386-apple-darwin
> ```
> Make:
> ```bash
> 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 the `cc1` binary is created successfully.
2021-07-14 11:43:21 +02:00