On Mon, Mar 23, 2009 at 10:44:43AM +0000, Stuart Henderson wrote:
> On 2009-03-23, Pedro de Oliveira <fa...@rdk.homeip.net> wrote:
> > Thanks for that, it worked!
> >
> > I added the following to my root .profile:
> > export PARALLEL_BUILD=Yes
> > export MAKE_JOBS=4
> 
> N.B. this does not work with all ports.
> 
> If you're building a number of ports at the same time and want to do these
> in parallel, look at /usr/ports/infrastructure/build/dpb, which normally runs
> one build job per cpu in the system (and takes care of dependencies etc).

Yep, does not work with all ports. And I still have stuff I need to fix
in make itself before we even think of fixing the ports that don't work
with make -j: some of them don't work because the makefiles are wrong, and
some of them don't work because make -j does not equate targets which leads
to the same file. E.g., make -j does not know (yet) that a and ./a are
the same file...

(so putting workarounds for that specific make limitation is out of the
question. I hope to have enough time this release cycle to fix THAT particular
bug...)

Reply via email to