File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,10 +24,17 @@ BUILD_DKPRO_PACKAGE=0
2424# ---------------------------------------------------------------------------------
2525# BUILD_DKPRO_SRCDIR=/d/projects/archives
2626
27+ # ---------------------------------------------------------------------------------
28+ # MAKEFLAGS for building - use number of processors for jobs
29+ # ---------------------------------------------------------------------------------
30+ # numcores=`getconf _NPROCESSORS_ONLN`
31+ # MAKEFLAGS=-j$numcores
32+
2733# ---------------------------------------------------------------------------------
2834# Automated script execution
2935# ---------------------------------------------------------------------------------
3036# 0: Ask to delete build folders & patched sources
3137# 1: Use defaults, don't pause for answers
3238# ---------------------------------------------------------------------------------
3339BUILD_DKPRO_AUTOMATED=0
40+
Original file line number Diff line number Diff line change 11#! /bin/sh
22# ---------------------------------------------------------------------------------
33
4- numcores=` getconf _NPROCESSORS_ONLN`
5-
6- numjobs=$(( $numcores * 2 + 1 ))
7-
84# ---------------------------------------------------------------------------------
95# build and install binutils
106# ---------------------------------------------------------------------------------
2420
2521if [ ! -f built-binutils ]
2622then
27- $MAKE -j $numjobs || { echo " Error building binutils" ; exit 1; }
23+ $MAKE || { echo " Error building binutils" ; exit 1; }
2824 touch built-binutils
2925fi
3026
7470
7571if [ ! -f built-gcc ]
7672then
77- $MAKE all-gcc -j $numjobs || { echo " Error building gcc stage1" ; exit 1; }
73+ $MAKE all-gcc || { echo " Error building gcc stage1" ; exit 1; }
7874 touch built-gcc
7975fi
8076
109105
110106if [ ! -f built-newlib ]
111107then
112- $MAKE -j $numjobs || { echo " Error building newlib" ; exit 1; }
108+ $MAKE || { echo " Error building newlib" ; exit 1; }
113109 touch built-newlib
114110fi
115111
@@ -130,7 +126,7 @@ cd $target/gcc
130126
131127if [ ! -f built-stage2 ]
132128then
133- $MAKE all -j $numjobs || { echo " Error building gcc stage2" ; exit 1; }
129+ $MAKE all || { echo " Error building gcc stage2" ; exit 1; }
134130 touch built-stage2
135131fi
136132
166162
167163if [ ! -f built-gdb ]
168164then
169- $MAKE -j $numjobs || { echo " Error building gdb" ; exit 1; }
165+ $MAKE || { echo " Error building gdb" ; exit 1; }
170166 touch built-gdb
171167fi
172168
You can’t perform that action at this time.
0 commit comments