From owner-freebsd-questions@FreeBSD.ORG Wed Apr 9 18:35:55 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 4F6BE1065673 for ; Wed, 9 Apr 2008 18:35:55 +0000 (UTC) (envelope-from the.real.david.allen@gmail.com) Received: from ti-out-0910.google.com (ti-out-0910.google.com [209.85.142.190]) by mx1.freebsd.org (Postfix) with ESMTP id D23258FC20 for ; Wed, 9 Apr 2008 18:35:54 +0000 (UTC) (envelope-from the.real.david.allen@gmail.com) Received: by ti-out-0910.google.com with SMTP id j2so1106647tid.3 for ; Wed, 09 Apr 2008 11:35:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=DWd0o/f0aW+ZK8vGSOIHGW/Y3oLc6FV3PsYqH6zerVY=; b=SCNHikZwuwXcH+gwOQwJ/StUo05AP3VSza0MAWC1zNcCrSbBq7Uvay6W7HDPbLD8oSIDem8b1GpuJhjIPizxeqhtswGMLDwvBDAefPaOfuPYQuPGiUwpg5SBP1KJoU3jUnY0qg8nbL5E6XUbcxnSWZ3EbJ3rHQYeFulCIGLkZf0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fJUagSO/sv0su73nYczRLr3ds2tFLaxe3uAT/pwmFYr6CutZsHN06A/vx3gCnzHT5aQ4UhuZIjK8DUUU23xIjbJtT7uC+gxGRWhbuN6ROe4Fp9gFnaSRcwz6KWl3iOdjhD257HRgiZWAnRCyNLp/oM15/ikSDwQxLm8idtEM0dc= Received: by 10.151.149.14 with SMTP id b14mr762260ybo.19.1207766151855; Wed, 09 Apr 2008 11:35:51 -0700 (PDT) Received: by 10.150.218.4 with HTTP; Wed, 9 Apr 2008 11:35:51 -0700 (PDT) Message-ID: <2daa8b4e0804091135w4b31ea67vf6334fa83845a4e1@mail.gmail.com> Date: Wed, 9 Apr 2008 11:35:51 -0700 From: "David Allen" To: freebsd-questions@freebsd.org In-Reply-To: <20080409184435.3bb4b91c@gumby.homeunix.com.> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2daa8b4e0804081314o25b9773bn844734b674856e8c@mail.gmail.com> <20080409184435.3bb4b91c@gumby.homeunix.com.> Subject: Re: Setting CPUTYPE and CFLAGS in 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: Wed, 09 Apr 2008 18:35:55 -0000 On Wed, Apr 9, 2008 at 10:44 AM, RW wrote: > On Tue, 8 Apr 2008 13:14:45 -0700 David Allen wrote: > > > The advice I've read in several posts on the subject involve > > everything from setting one, setting both, to ignoring both, > > sometimes with the =? notation and sometimes without. And then, I've > > read comments that suggest when compiling the kernel, for example, > > both are ignored, and default values (tucked away somewhere) are > > always applied. IIRC, the handbook recommends at least setting > > CPUTYPE. > > Avoid setting CFLAGS unless you have a good reason - Gentoo > documentation has a lot to answer for. CPUTYPE causes "-march" to be > applied, so it can affect compatibility. AFAIK both setting do affect > world and kernel because CFLAGS can cause a build to fail, and I've > seen matching march settings in kernel builds. > > > Or are those settings relevant to the > > compilation process only? Or to both the compilation process and the > > actual performance of the binary? > > It can be either, -O2 is related to execution, -pipe speeds-up > compilation. Thank you for your reply. It's starting to make a lot more sense. Just to confirm, then, if there's no CPUTYPE set, I can then set up a build server on an Opteron box, for example, to build world, kernel and ports binaries that can then be installed on my Thinkpad or a PIII box?