academic/boinc: Use MAKEFLAGS to pass numjobs.

We only hardcode -j1 if a build cannot work with multiple jobs,
otherwise rely on MAKEFLAGS.

https://idlemoor.gitlab.io/2016/09/15/Builds-that-need-j1.html

Signed-off-by: Andrew Clemons <andrew.clemons@gmail.com>
This commit is contained in:
Andrew Clemons 2022-02-27 21:42:32 +13:00 committed by Robby Workman
parent b617505549
commit 4796287136

View file

@ -32,7 +32,6 @@ BRANCH=${BRANCH:-7.16}
BUILD=${BUILD:-1} BUILD=${BUILD:-1}
TAG=${TAG:-_SBo} TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz} PKGTYPE=${PKGTYPE:-tgz}
NUMJOBS=${NUMJOBS:-1}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
case "$( uname -m )" in case "$( uname -m )" in
@ -110,7 +109,7 @@ CXXFLAGS="$SLKCFLAGS" \
--with-x \ --with-x \
--build=$ARCH-slackware-linux --build=$ARCH-slackware-linux
make -j${NUMJOBS} make
make install DESTDIR=$PKG make install DESTDIR=$PKG
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \