From owner-freebsd-questions@FreeBSD.ORG Wed Jul 27 17:01: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 B222E16A41F for ; Wed, 27 Jul 2005 17:01:06 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CC1243D55 for ; Wed, 27 Jul 2005 17:01:05 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: by wproxy.gmail.com with SMTP id i4so221417wra for ; Wed, 27 Jul 2005 10:01: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=uGHAYgVq6ZDrLZ+IkLmRZiaf3q7w8eSupRrozUj1AGkbwSnpa1JoR6Wwd0W3jDRS55j+UzH1OIJdNy/oxbnsnxkJkpdQ7i5x8tMNJ5XQpkvB5+JvQdzP8v79/lbSmmtzp9sy5RGQmVTE3W2VvazyJMk9sz13IIr0essxaKIt5zk= Received: by 10.54.45.14 with SMTP id s14mr421325wrs; Wed, 27 Jul 2005 10:01:05 -0700 (PDT) Received: by 10.54.124.11 with HTTP; Wed, 27 Jul 2005 10:01:05 -0700 (PDT) Message-ID: Date: Wed, 27 Jul 2005 12:01:05 -0500 From: Nikolas Britton To: =?ISO-8859-1?Q?K=F6vesd=E1n_G=E1bor?= In-Reply-To: <42E815EC.20309@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> <42E815EC.20309@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 17:01:06 -0000 On 7/27/05, K=F6vesd=E1n G=E1bor wrote: > Nikolas Britton wrote: >=20 > >On 7/26/05, K=F6vesd=E1n G=E1bor wrote: > > > > > >>Nikolas Britton wrote: > >> > >> > >> > >>>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. > >> > >> > >> > > > >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. > > > > > > > Yes, I know -O3 isn't supported for either, but I didn't mean ports. The > kernel building > fails with this: > CFLAGS=3D-O3 -march=3Dathlon64 > #COPTFLAGS=3D-O3 -march=3Dathlon64 <-This is commenred out! > And this breaks the kernel compiling. See this: >=20 > http://www.freebsd.org/cgi/query-pr.cgi?pr=3D83995 Isn't their a way to overide any setting in make.conf by putting it ( -O flags ) inside the kernel config file, I seem to remember doing something like that in the passed. Or you could do it all inline again like: nice -20 make -j2 CYPUTYPE=3Dp4 "CFLAGS=3D -Os -pipe" KERNCONF=3DME_COLONEL buildkernel