summaryrefslogtreecommitdiff
path: root/toolchain/build-gcc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/build-gcc.sh')
-rwxr-xr-xtoolchain/build-gcc.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/toolchain/build-gcc.sh b/toolchain/build-gcc.sh
index c9af8a1..f790505 100755
--- a/toolchain/build-gcc.sh
+++ b/toolchain/build-gcc.sh
@@ -6,8 +6,7 @@ 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
+../gcc-*/configure --target=i686-sb --prefix="$PREFIX" --with-gmp --with-mpfr --with-sysroot="$(pwd)/../../sysroot" --enable-languages=c,c++
+make -j$(nproc) all-gcc all-target-libgcc && make install-gcc install-target-libgcc