From 86f589087ca9b359fbb9afd1845239d3af0778d7 Mon Sep 17 00:00:00 2001 From: Glen Barber Date: Thu, 15 Oct 2015 19:53:16 +0000 Subject: [PATCH] Pass .MAKEFLAGS in the 'packages' target to allow parallel builds. Pass '-B' when invoking the 'stageworld' target, similar to what is done for 'installworld'. Sponsored by: The FreeBSD Foundation --- Makefile.inc1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.inc1 b/Makefile.inc1 index d2a4c2e4cca..12e2d4201c6 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1285,8 +1285,8 @@ STAGEDIR= ${MAKEOBJDIRPREFIX}${.CURDIR}/stage packages: @mkdir -p ${MAKEOBJDIRPREFIX}${.CURDIR}/stage ${_+_}@cd ${.CURDIR}; \ - ${MAKE} buildworld ; \ - ${MAKE} DESTDIR=${DESTDIR:U${STAGEDIR}} -DNO_ROOT stageworld ; \ + ${MAKE} ${.MAKEFLAGS} buildworld ; \ + ${MAKE} DESTDIR=${DESTDIR:U${STAGEDIR}} -DNO_ROOT -B stageworld ; \ ${MAKE} DESTDIR=${DESTDIR:U${STAGEDIR}} create-world-packages create-kernel-packages: