summaryrefslogtreecommitdiff
path: root/toolchain/build-gcc.sh
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2023-10-22 19:50:38 +0200
committerAnton Kling <anton@kling.gg>2023-10-22 19:50:38 +0200
commit4e09bca9e34c226b6d7e34b4fa11248405fd988e (patch)
tree80f156b7940d9d19971395f335530170c69516c7 /toolchain/build-gcc.sh
Move everything into a new repo.
Diffstat (limited to 'toolchain/build-gcc.sh')
-rwxr-xr-xtoolchain/build-gcc.sh13
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