File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,10 @@ mkdir -p $PREFIX
63
63
mkdir -p " $DIR /Build/binutils"
64
64
mkdir -p " $DIR /Build/gcc"
65
65
66
+ if [ -z " $MAKEJOBS " ]; then
67
+ MAKEJOBS=$( nproc)
68
+ fi
69
+
66
70
pushd " $DIR /Build/"
67
71
unset PKG_CONFIG_LIBDIR # Just in case
68
72
@@ -71,7 +75,7 @@ pushd "$DIR/Build/"
71
75
--target=$TARGET \
72
76
--with-sysroot=$SYSROOT \
73
77
--disable-nls || exit 1
74
- make -j $( nproc ) || exit 1
78
+ make -j $MAKEJOBS || exit 1
75
79
make install || exit 1
76
80
popd
77
81
@@ -84,7 +88,7 @@ pushd "$DIR/Build/"
84
88
--enable-languages=c,c++ || exit 1
85
89
86
90
echo " XXX build gcc and libgcc"
87
- make -j $( nproc ) all-gcc all-target-libgcc || exit 1
91
+ make -j $MAKEJOBS all-gcc all-target-libgcc || exit 1
88
92
echo " XXX install gcc and libgcc"
89
93
make install-gcc install-target-libgcc || exit 1
90
94
You can’t perform that action at this time.
0 commit comments