variable to allow parallel builds

This commit is contained in:
wolfwood
2010-12-20 01:40:14 -05:00
parent 8386340da6
commit a203bde4a9

View File

@@ -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 ..