From 6c0e142409d57c11fc03bcbc3d79a4d646f885ff Mon Sep 17 00:00:00 2001 From: Anton Kling <anton@kling.gg> Date: Mon, 30 Oct 2023 22:54:28 +0100 Subject: Meta: Create a simple toolchain compilation script --- toolchain/build-gcc.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'toolchain/build-gcc.sh') 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 -- cgit v1.2.3