diff options
author | Anton Kling <anton@kling.gg> | 2023-10-22 19:50:38 +0200 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-10-22 19:50:38 +0200 |
commit | 4e09bca9e34c226b6d7e34b4fa11248405fd988e (patch) | |
tree | 80f156b7940d9d19971395f335530170c69516c7 /toolchain/build-gcc.sh |
Move everything into a new repo.
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 |