From owner-freebsd-questions@FreeBSD.ORG Fri Mar 9 14:47:34 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 471D716A407 for ; Fri, 9 Mar 2007 14:47:34 +0000 (UTC) (envelope-from fbsd06@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by mx1.freebsd.org (Postfix) with ESMTP id 17C5A13C4B2 for ; Fri, 9 Mar 2007 14:47:33 +0000 (UTC) (envelope-from fbsd06@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 37F3B5197F for ; Fri, 9 Mar 2007 09:47:32 -0500 (EST) Date: Fri, 9 Mar 2007 14:47:30 +0000 From: RW To: freebsd-questions@freebsd.org Message-ID: <20070309144730.30ac6aba@gumby.homeunix.com> In-Reply-To: <45F0EAF2.2010303@u.washington.edu> References: <989294.46444.qm@web34411.mail.mud.yahoo.com> <14989d6e0703081645q9b555b5i26cca0557590e9cd@mail.gmail.com> <45F0EAF2.2010303@u.washington.edu> X-Mailer: Claws Mail 2.8.0 (GTK+ 2.10.9; i386-portbld-freebsd6.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: DEFAULT CFLAGS SETTING 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: Fri, 09 Mar 2007 14:47:34 -0000 On Thu, 08 Mar 2007 21:04:50 -0800 Garrett Cooper wrote: > Christian Walther wrote: > > On 08/03/07, White Hat wrote: > >> What is the default CFLAGS setting in FBSD-6.2 and would it > >> improve performance any to set > >> > >> CFLAGS=Os > >> > >> as opposed to the default setting? > >> > > CFLAGS can be defined in /etc/make.conf > > My CFLAGS is set to -O2 -pipe. Note that by explicitly defining CFLAGS, you override the -fno-strict-aliasing that's set by default. FreeBSD provides sensible defaults for all of these things, based on CPUTYPE. > As mentioned when I asked the question a while back, be careful about > how you "optimize" freebsd. >... > I was told to add -fno-strict-aliasing,