From owner-freebsd-amd64@FreeBSD.ORG Tue Oct 11 16:16:31 2005 Return-Path: X-Original-To: freebsd-amd64@freebsd.org Delivered-To: freebsd-amd64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B7F1516A41F for ; Tue, 11 Oct 2005 16:16:31 +0000 (GMT) (envelope-from bde@zeta.org.au) Received: from mailout2.pacific.net.au (mailout2.pacific.net.au [61.8.0.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 27FFD43D46 for ; Tue, 11 Oct 2005 16:16:31 +0000 (GMT) (envelope-from bde@zeta.org.au) Received: from mailproxy2.pacific.net.au (mailproxy2.pacific.net.au [61.8.0.87]) by mailout2.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id j9BGGTbk014614; Wed, 12 Oct 2005 02:16:29 +1000 Received: from katana.zip.com.au (katana.zip.com.au [61.8.7.246]) by mailproxy2.pacific.net.au (8.13.4/8.13.4/Debian-3) with ESMTP id j9BGGRc1023993; Wed, 12 Oct 2005 02:16:28 +1000 Date: Wed, 12 Oct 2005 02:16:28 +1000 (EST) From: Bruce Evans X-X-Sender: bde@delplex.bde.org To: Claus Guttesen In-Reply-To: Message-ID: <20051012020021.Q71554@delplex.bde.org> References: <20051010072456.GA52280@xor.obsecurity.org> <20051010174358.GA34176@xor.obsecurity.org> <20051011090639.K69382@delplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-amd64@freebsd.org, Kris Kennaway Subject: Re: /etc/make.conf flags for Intel X-BeenThere: freebsd-amd64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the AMD64 platform List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 11 Oct 2005 16:16:31 -0000 On Tue, 11 Oct 2005, Claus Guttesen wrote: >>>> /usr/share/examples/etc/make.conf is set to -O. >>> >>> The setting in trumps this documentation file, but you're >>> right, this should be updated there. Could you please send a PR? >> >> The example is correct. It shows how to change the default of "-O2 >> -fstrict-aliasing -pipe" to "-O -pipe". It would be less than useful >> to repeat the default in the examples or in /etc/make.conf. ... > > So what your saying is that one should not override these values in > make.conf but leave them commented out? Doing a buildworld without > CFLAGS does indeed compile using -O2: - Normally leave them out of the installed make.conf. - Leave them commented out in examples/etc/make.conf. - Add comments to examples/etc/make.conf to emphasize that they are only examples and that use of some of them, especially CFLAGS, is problematic. Bruce