Date: Fri, 9 Mar 2007 14:47:30 +0000 From: RW <fbsd06@mlists.homeunix.com> To: freebsd-questions@freebsd.org Subject: Re: DEFAULT CFLAGS SETTING 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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 08 Mar 2007 21:04:50 -0800 Garrett Cooper <youshi10@u.washington.edu> wrote: > Christian Walther wrote: > > On 08/03/07, White Hat <pigskin_referee@yahoo.com> 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,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070309144730.30ac6aba>