diff --git a/build.sh b/build.sh index 89aa6dd..dfd57c8 100755 --- a/build.sh +++ b/build.sh @@ -1,4 +1,5 @@ OSNAME=xomb +NCPU=4 BINUTILS_VER=2.20 GCC_VER=4.5.0 @@ -82,14 +83,14 @@ mkdir -p mpc-obj echo "COMPILE BINUTILS" cd binutils-obj ../binutils-${BINUTILS_VER}/configure --target=$TARGET --prefix=$PREFIX --disable-werror || exit -make || exit +make -j $NCPU|| exit make install || exit cd .. echo "COMPILE GMP" cd gmp-obj ../gmp-${GMP_VER}/configure --prefix=$PREFIX --disable-shared || exit -make || exit +make -j $NCPU || exit make check || exit make install || exit cd .. @@ -97,7 +98,7 @@ cd .. echo "COMPILE MPFR" cd mpfr-obj ../mpfr-${MPFR_VER}/configure --prefix=$PREFIX --with-gmp=$PREFIX --disable-shared -make || exit +make -j $NCPU || exit make check || exit make install || exit cd .. @@ -105,7 +106,7 @@ cd .. echo "COMPILE MPC" cd mpc-obj ../mpc-${MPC_VER}/configure --target=$TARGET --prefix=$PREFIX --with-gmp=$PREFIX --with-mpfr=$PREFIX --disable-shared || exit -make || exit +make -j $NCPU || exit make check || exit make install || exit cd .. @@ -135,7 +136,7 @@ cd newlib-obj ../newlib-${NEWLIB_VER}/configure --target=$TARGET --prefix=$PREFIX --with-gmp=$PREFIX --with-mpfr=$PREFIX -enable-newlib-hw-fp || exit echo "COMPILE NEWLIB" -make || exit +make -j $NCPU || exit make install || exit cd .. @@ -143,9 +144,9 @@ echo "PASS-2 COMPILE GCC" cd gcc-obj #make all-target-libgcc #make install-target-libgcc -make all-target-libstdc++-v3 || exit +make -j $NCPU all-target-libstdc++-v3 || exit make install-target-libstdc++-v3 || exit -make || exit +make -j $NCPU || exit make install || exit cd ..