From owner-freebsd-questions@FreeBSD.ORG Thu Mar 13 13:31:22 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FEB21065675 for ; Thu, 13 Mar 2008 13:31:22 +0000 (UTC) (envelope-from fbsd06+T7=60d89361@mlists.homeunix.com) Received: from mxout-04.mxes.net (mxout-04.mxes.net [216.86.168.179]) by mx1.freebsd.org (Postfix) with ESMTP id BB11B8FC1B for ; Thu, 13 Mar 2008 13:31:20 +0000 (UTC) (envelope-from fbsd06+T7=60d89361@mlists.homeunix.com) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 28818D05B3 for ; Thu, 13 Mar 2008 09:31:18 -0400 (EDT) Date: Thu, 13 Mar 2008 13:31:15 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20080313133115.4b0ebe16@gumby.homeunix.com.> In-Reply-To: <9A6A62B6B84859469F3EBB5F09D818CA219E9B@cernxchg50.cern.ch> References: <47D9004D.5070407@planet.nl> <9A6A62B6B84859469F3EBB5F09D818CA219E98@cernxchg50.cern.ch> <87F851FC-750A-478F-BD01-1B7FED69BF7A@gmail.com> <9A6A62B6B84859469F3EBB5F09D818CA219E9B@cernxchg50.cern.ch> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.9; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: Tuning make.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Mar 2008 13:31:22 -0000 On Thu, 13 Mar 2008 13:30:05 +0100 "Luca Presotto" 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.)