Subject: Re: pkgsrc on SMP machines
To: Dieter Baron <dillo@danbala.tuwien.ac.at>
From: None <segv@netctl.net>
List: tech-pkg
Date: 12/15/2005 12:04:06
On Thu, 15 Dec 2005 12:20:20 +0100 (CET)
Dieter Baron <dillo@danbala.tuwien.ac.at> wrote:

> In article <Pine.LNX.4.61.0512150434360.12122@m24s24.vlinux.de> Hubert wrote:
> : On Thu, 15 Dec 2005 segv@netctl.net wrote:
> : > Hi, can anyone suggest a good strategy for utilising the most of SMP
> hardware : > when building software from pkgsrc??
> : ...
> : > Fixing all Makefiles to support -j > 1 seems quite unreasonable, I guess
> the : > best solution would be to have a multithreaded compiler, which
> distributes : > workload to a specified number of threads, i.e.:
> 
> : How about compiling the pkgs themselves (i.e. whatever gets extracted from 
> : sources) with 'make -j', e.g. as the patch below does. At least that's how 
> : Unix is supposed to work...
> 
>   Not all packages' build system support this, many probably fail (or
> become unreliable) when make is invoked with -j.

Yeah, I noticed that. There is no easy way to do this