Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Make options



On Tue, Feb 03, 2009 at 12:42:33PM -0600, David Dudley wrote:
> Is there a way to define default options for use by make in
> building/updating the pkgsrc system?
> 
> I'm running on a dual processor quad core machine, and would like make to
> always use the -j 9 to utilize all the cores.
> 
> When I use pkg_chk to do updates, I don't see a way to insert that option.

Put the following in /etc/mk.conf:

   MAKE_JOBS=9

And then be prepared to manage local package Makefiles which fail to build
in parallel, e.g. games/xpat2.  They'll need the following to be added:

   MAKE_JOBS_SAFE=NO

-- 
. ___ ___  .   .  ___
.  \    /  |\  |\ \
.  _\_ /__ |-\ |-\ \__


Home | Main Index | Thread Index | Old Index