From owner-freebsd-questions@FreeBSD.ORG Fri Mar 9 20:04: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 DACAA16A404 for ; Fri, 9 Mar 2007 20:04:34 +0000 (UTC) (envelope-from cptsalek@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.231]) by mx1.freebsd.org (Postfix) with ESMTP id 98D6613C494 for ; Fri, 9 Mar 2007 20:04:34 +0000 (UTC) (envelope-from cptsalek@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so897208wxc for ; Fri, 09 Mar 2007 12:04:33 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=XjRTxCZIFjBTIP0avqo8594Lg5+mmwJOj6MDq/5EERhmm3wD3u2UZRlaaNRMa8hJGJVcoAcs0wZji3XqzPEnRzb4jCtk2ns6LkQbvvb3HdrIdyPf27Pz3/VcBvSiwIeShuWaTdcdTVx+CeTORElV2frc+RwH8xR+UP899ZsgnoA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=TZVhndS3zvRAXOb1CTIIRYr8n24JwOXGZB1ANpsQMe13B5lCZ6EqsycvbFjdignI8QdsJMIuZC7zIKKsmvSTXlAIa2uK94QgR/foaSZG/q5bOR0F0lKi/MZ82b30CItyJY4pU9Ob1weA58QH4BOqils96WnkTvezkmaEEsLSsL4= Received: by 10.70.96.3 with SMTP id t3mr3622175wxb.1173470673645; Fri, 09 Mar 2007 12:04:33 -0800 (PST) Received: by 10.70.14.15 with HTTP; Fri, 9 Mar 2007 12:04:33 -0800 (PST) Message-ID: <14989d6e0703091204iedbc712ibab204a85b528c0f@mail.gmail.com> Date: Fri, 9 Mar 2007 20:04:33 +0000 From: "Christian Walther" To: RW In-Reply-To: <20070309144730.30ac6aba@gumby.homeunix.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <989294.46444.qm@web34411.mail.mud.yahoo.com> <14989d6e0703081645q9b555b5i26cca0557590e9cd@mail.gmail.com> <45F0EAF2.2010303@u.washington.edu> <20070309144730.30ac6aba@gumby.homeunix.com> Cc: freebsd-questions@freebsd.org 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 20:04:34 -0000 On 09/03/07, RW wrote: > On Thu, 08 Mar 2007 21:04:50 -0800 > Garrett Cooper wrote: > > > Christian Walther wrote: > > > On 08/03/07, White Hat 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