From owner-freebsd-ports@FreeBSD.ORG Tue Jan 15 00:47:06 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 69E0716A47B for ; Tue, 15 Jan 2008 00:47:06 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by mx1.freebsd.org (Postfix) with ESMTP id 4915B13C442 for ; Tue, 15 Jan 2008 00:47:06 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay14.apple.com (relay14.apple.com [17.128.113.52]) by mail-out3.apple.com (Postfix) with ESMTP id 35BC71E0A7D8; Mon, 14 Jan 2008 16:30:30 -0800 (PST) Received: from relay14.apple.com (unknown [127.0.0.1]) by relay14.apple.com (Symantec Mail Security) with ESMTP id 1D2D628088; Mon, 14 Jan 2008 16:30:30 -0800 (PST) X-AuditID: 11807134-a66d7bb00000731a-73-478bfea6fa0d Received: from cswiger1.apple.com (cswiger1.apple.com [17.214.13.96]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by relay14.apple.com (Apple SCV relay) with ESMTP id F3A5E28087; Mon, 14 Jan 2008 16:30:29 -0800 (PST) Message-Id: <4EA98CBC-8BE3-4195-82A7-3E63C0D70593@mac.com> From: Chuck Swiger To: =?ISO-8859-1?Q?Christoffer_Str=F6mblad?= In-Reply-To: <478BF671.7010104@wa-sp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v915) Date: Mon, 14 Jan 2008 16:30:29 -0800 References: <478BF671.7010104@wa-sp.com> X-Mailer: Apple Mail (2.915) X-Brightmail-Tracker: AAAAAA== Cc: freebsd-ports@freebsd.org Subject: Re: Compiling utilizing multiple CPUs X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Jan 2008 00:47:06 -0000 On Jan 14, 2008, at 3:55 PM, Christoffer Str=F6mblad wrote: > Having looked through much of the available documentation one thing > continues to elude me... Is it possible to specify globally how many > CPUs are available when compiling a port? When I compile a port now it > seems as if only one CPU is used, even though more are available. The quality of the Makefiles or similar used by individual ports =20 varies, and many of them are not safe to compile in a multithreaded =20 fashion. You can set "MAKEFLAGS=3D-j3" or similar in your environment, =20= but it's really not recommended. --=20 -Chuck