summaryrefslogtreecommitdiff
path: root/toolchain/build-gcc.sh
blob: c9af8a140ed900e45e9563c346055016a534b67d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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