Changes

Jump to: navigation, search
no edit summary
== Introduction ==
We'll build a GCC 9.23.0 targeting m68k (Sega Genesis).
== Create directories ==
== Get GCC and binutils ==
curl https://ftp.gnu.org/gnu/binutils/binutils-2.33.134.tar.gz | tar -C $HOME/src -xf - curl https://ftp.gnu.org/gnu/gcc/gcc-9.23.0/gcc-9.23.0.tar.gz | tar -C $HOME/src -xf - curl ftp://sourceware.org/pub/newlib/newlib-3.13.0.tar.gz | tar -C $HOME/src -xf -
== Download prerequisites ==
cd $HOME/src/gcc-9.23.0
./contrib/download_prerequisites
cd $HOME/obj/binutils-build
../../src/binutils-2.33.134/configure --prefix $HOME/xgcc --bindir $HOME/bin --target m68k-elf --with-cpu=m68000
make -j8 && make install
cd $HOME/obj/gcc-build
../../src/gcc-9.23.0/configure --prefix $HOME/xgcc --bindir $HOME/bin --target m68k-elf --with-cpu=m68000 --enable-languages=c --with-gnu-as --with-gnu-ld --without-headers --with-newlib
make -j8 all-gcc && make install-gcc
cd $HOME/obj/newlib-build
../../src/newlib-3.13.0/configure --prefix $HOME/xgcc --bindir $HOME/bin --target m68k-elf --with-cpu=m68000
make -j8 all && make install
rm -rf $HOME/obj/gcc-build && mkdir -p $HOME/obj/gcc-build
cd $HOME/obj/gcc-build
../../src/gcc-9.23.0/configure --prefix $HOME/xgcc --bindir $HOME/bin --target m68k-elf --with-cpu=m68000 --enable-languages=c --with-gnu-as --with-gnu-ld --with-newlib
make -j8 all && make install
rm -rf $HOME/obj/binutils-build && mkdir -p $HOME/obj/binutils-build
cd $HOME/obj/binutils-build
../../src/binutils-2.33.134/configure --prefix $HOME/xgcc --bindir $HOME/bin --target z80-coff
make -j8 && make install

Navigation menu