Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Mar 2008 13:31:15 +0000
From:      RW <fbsd06@mlists.homeunix.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Tuning make.conf
Message-ID:  <20080313133115.4b0ebe16@gumby.homeunix.com.>
In-Reply-To: <9A6A62B6B84859469F3EBB5F09D818CA219E9B@cernxchg50.cern.ch>
References:  <Pine.LNX.4.58.0803130937530.5944@lxplus098.cern.ch> <47D9004D.5070407@planet.nl> <9A6A62B6B84859469F3EBB5F09D818CA219E98@cernxchg50.cern.ch> <87F851FC-750A-478F-BD01-1B7FED69BF7A@gmail.com> <9A6A62B6B84859469F3EBB5F09D818CA219E9B@cernxchg50.cern.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 13 Mar 2008 13:30:05 +0100
"Luca Presotto" <Luca.Presotto@cern.ch> wrote:


> Maybe it's possible that when building the kernel it gives some
> problem, but I'm thinking about compiling ports.

You need to understand that make.conf affects FreeBSD make, which is
used for building  the base system, and for the ports infrastructure.
It's use in ports in analogous to the python part of the Gentoo portage
system. The actual port build itself is normally done by gmake (GNU
make), because that's determined by the upstream project. 

Passing -j directly to a port make doesn't make any sense, and breaks
the ports system. What you need to do is pass the -j to the underlying
gmake in the build stage.  I can't remember offhand how to do that,
but you can look in bsd.port.mk to see what variables get used. There is
also talk of regularizing this this approach by changes to the ports
system.

Whether or not an individual port works with -j is mostly a matter for
the upstream project; many builds will break or become flakey, so any
-j settings need to be made per port rather than globally. 

(BTW if you want to speed-up builds you might also try devel/ccache.)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080313133115.4b0ebe16>