diff options
Diffstat (limited to 'toolchain/build-gcc.sh')
-rwxr-xr-x | toolchain/build-gcc.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/toolchain/build-gcc.sh b/toolchain/build-gcc.sh new file mode 100755 index 0000000..c9af8a1 --- /dev/null +++ b/toolchain/build-gcc.sh @@ -0,0 +1,13 @@ +#!/bin/sh +./download-gcc.sh +tar -xf gcc-*.tar.xz +cd ./gcc-*/ +patch -f -p1 -i ../gcc-13.1.0.diff +cd .. +mkdir bin +PREFIX=$(pwd)"/bin" +#PREFIX="/home/anton/prj/osdev/sysroot" +mkdir build-gcc +cd build-gcc +../gcc-*/configure --target=i686-sb --prefix="$PREFIX" --with-gmp --with-mpfr --with-sysroot="/home/anton/prj/osdev/sysroot" --enable-languages=c,c++ +make -j6 all-gcc all-target-libgcc && make install-gcc install-target-libgcc |