Date: Fri, 9 Mar 2007 20:04:33 +0000 From: "Christian Walther" <cptsalek@gmail.com> To: RW <fbsd06@mlists.homeunix.com> Cc: freebsd-questions@freebsd.org Subject: Re: DEFAULT CFLAGS SETTING Message-ID: <14989d6e0703091204iedbc712ibab204a85b528c0f@mail.gmail.com> In-Reply-To: <20070309144730.30ac6aba@gumby.homeunix.com> References: <989294.46444.qm@web34411.mail.mud.yahoo.com> <14989d6e0703081645q9b555b5i26cca0557590e9cd@mail.gmail.com> <45F0EAF2.2010303@u.washington.edu> <20070309144730.30ac6aba@gumby.homeunix.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 09/03/07, RW <fbsd06@mlists.homeunix.com> wrote: > 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: [...] > > > 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. Thanks for pointing this out. I did read /usr/share/examples/etc/make.conf to get some sensible settings, which is why I've chosen it to set CFLAGS like I did. Since -fno-strict-aliasing is that important, it should probably be mentioned in /usr/share/examples/etc/make.conf Just my 2 cents Christian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14989d6e0703091204iedbc712ibab204a85b528c0f>