Re: make -j in Debian packages
Lars Wirzenius <email@example.com> wrote:
> > It has come to my attention that the gem package is currently built
> > using 'make -j 4', to have four compiler processes running at the same
> > time. This is a bit troublesome for the poor m68k buildd, which is now
> > suffering under High Load And Constant Swapping (HLACS).
> As far as I can see, using make's -j option is only useful if you have
> multiple processors. Packages should not make such assumptions of the
> build environment.
> If package maintainer wants to build it faster on their own machine, I
> would imagine that checking for an environment variable (DEB_MAKE_OPTS
> or something, perhaps?) and using that would be the way to go. By
> default, build with a single processor.
kernel-package uses the CONCURRENCY_LEVEL envrionment variable for
this. And if I do a "CONCURRENCY_LEVEL=4" on my single-CPU system, it does
actually go quite a bit faster. :)