Added PKGFS_MAKEJOBS to the configuration file.
This specifies the number of GNU/BSD make jobs while building packages. It's disabled by default. --HG-- extra : convert_revision : d422b7df36276b849e2a19113c5407ed67bffa68
This commit is contained in:
parent
7befbe97ab
commit
b9c94dbdbd
2 changed files with 7 additions and 2 deletions
|
@ -48,3 +48,8 @@ PKGFS_XSTOW_CMD=$PKGFS_MASTERDIR/bin/xstow
|
||||||
#
|
#
|
||||||
PKGFS_CFLAGS="-O2 -pipe"
|
PKGFS_CFLAGS="-O2 -pipe"
|
||||||
PKGFS_CXXFLAGS="$PKGFS_CFLAGS"
|
PKGFS_CXXFLAGS="$PKGFS_CFLAGS"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Number of jobs when running GNU or BSD make style packages.
|
||||||
|
#
|
||||||
|
#PKGFS_MAKEJOBS=4
|
||||||
|
|
4
pkgfs.sh
4
pkgfs.sh
|
@ -627,11 +627,11 @@ build_tmpl_sources()
|
||||||
done
|
done
|
||||||
|
|
||||||
[ -z "$make_build_target" ] && make_build_target=
|
[ -z "$make_build_target" ] && make_build_target=
|
||||||
|
[ -n "$PKGFS_MAKEJOBS" ] && PKGFS_MAKEJOBS="-j$PKGFS_MAKEJOBS"
|
||||||
#
|
#
|
||||||
# Build package via make.
|
# Build package via make.
|
||||||
#
|
#
|
||||||
${make_cmd} ${make_build_args} ${make_build_target}
|
${make_cmd} ${PKGFS_MAKEJOBS} ${make_build_args} ${make_build_target}
|
||||||
if [ "$?" -ne 0 ]; then
|
if [ "$?" -ne 0 ]; then
|
||||||
echo "*** ERROR building (make stage) \`$pkg' ***"
|
echo "*** ERROR building (make stage) \`$pkg' ***"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in a new issue