From owner-freebsd-questions@FreeBSD.ORG Wed Jul 27 00:16:06 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A772316A41F for ; Wed, 27 Jul 2005 00:16:06 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.194]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3935D43D48 for ; Wed, 27 Jul 2005 00:16:06 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: by wproxy.gmail.com with SMTP id i4so59801wra for ; Tue, 26 Jul 2005 17:16:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Vrt36UZ4DQDYIPrqEwfuG0dyp8EM5c+q4hNJbndWK1bKLETZe07IMvZ/QgEJZ5YCms0UmZw3GPY0WA6Lh9QbHPLYlihMx4L5mGVgHo/b5EsdoHiL52ld3rMHIdh0+XqPcGN4ezvI+EVwc0jVpCIi9nch22Cr/KvJanNug4P4754= Received: by 10.54.8.60 with SMTP id 60mr113891wrh; Tue, 26 Jul 2005 17:16:05 -0700 (PDT) Received: by 10.54.124.11 with HTTP; Tue, 26 Jul 2005 17:16:05 -0700 (PDT) Message-ID: Date: Tue, 26 Jul 2005 19:16:05 -0500 From: Nikolas Britton To: =?ISO-8859-1?Q?K=F6vesd=E1n_G=E1bor?= In-Reply-To: <42E69B11.6070208@t-hosting.hu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <42E69B11.6070208@t-hosting.hu> Cc: FreeBSD - Questions Subject: Re: FreeBSD 6 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Nikolas Britton List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jul 2005 00:16:06 -0000 On 7/26/05, K=F6vesd=E1n G=E1bor wrote: > Nikolas Britton wrote: >=20 > >Is it just me or is -O2 now the default for kernel builds? What about > >-Os, safe to use? > > > > > > > So is it for me. But if I specify some CFLAGS, for example -O3 > -march=3Dathlon64, the > building fails, but CFLAGS mustn't affect the kernel compiling process > afaik. There is > COPTFLAGS for that reason. I've also made a PR about this new, unwanted > behaviour, > but haven't got any answers so yet. >=20 You are right, COPTCLAGS is for the kernel only. -O3 is not officially supported for CFLAGS or COPTFLAGS. If you use -O3 for CFLAGS it will break some ports. Also from my experience using anything higher then CPUTYPE=3Dp2 will break ports (like gstreamer). This is what I normally add to my make.conf file: CPUTYPE=3Dp2 CFLAGS=3D -Os -pipes COPTFLAGS=3D -Os -pipes #CXXFLAGS=3D don't remember what I set this too, don't use it a lot. If I want a port to build with different settings I just tell it to inline... make CPUTYPE=3Dp4 install clean etc. As far as -O2 as the default for the kernel... I thought it was more important to have a small kernel then a faster but fatter one. The smaller the kernel the more you can put in L1,2, and 3 cache and the smaller the program the less it needs to hit ram, swap, and hard disk? isn't this what apple does with their OS-X builds?