From owner-freebsd-amd64@FreeBSD.ORG Tue Oct 11 08:00:53 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 8283616A41F for ; Tue, 11 Oct 2005 08:00:53 +0000 (GMT) (envelope-from kometen@gmail.com) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.197]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E14943D45 for ; Tue, 11 Oct 2005 08:00:52 +0000 (GMT) (envelope-from kometen@gmail.com) Received: by wproxy.gmail.com with SMTP id 71so179043wra for ; Tue, 11 Oct 2005 01:00:52 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=QGoRLgKpaqwBipORfTD7Z1hxg7t533J5dRoi6IpUcvRxUa70Xas0Vdr9LGVn1DzKkYeovWVKc/jTBQxSoO92h+NeVJ/mxEQu+xdBRUDlyPMiY7IBmEwsFYVEJzr/LGZFvcleRRfGQZxSVksNJzqj2h4Gq148Azn8GEuOaC/qO6Q= Received: by 10.54.106.12 with SMTP id e12mr3493186wrc; Tue, 11 Oct 2005 01:00:52 -0700 (PDT) Received: by 10.54.144.4 with HTTP; Tue, 11 Oct 2005 01:00:52 -0700 (PDT) Message-ID: Date: Tue, 11 Oct 2005 10:00:52 +0200 From: Claus Guttesen To: Bruce Evans In-Reply-To: <20051011090639.K69382@delplex.bde.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20051010072456.GA52280@xor.obsecurity.org> <20051010174358.GA34176@xor.obsecurity.org> <20051011090639.K69382@delplex.bde.org> 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 08:00:53 -0000 > >> /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. In the > example, it would be less than useful because it gives a confusing > example that should never be copied. In /etc/make.conf, it would be > less than useful because any setting of CFLAGS there breaks overriding > the setting of CFLAGS on the command line or in the environment, so > setting of CFLAGS there should be avoided, especially almost-null ones > which have no effect except to break the command line and environment > settings. (The breakage is due to having to work around the bug that > /etc/make.conf is included in sys.mk too late. CFLAGS should be set > using "?=3D" like sys.mk does, but since /etc/make.conf is included after > CFLAGS is set by that in sys.mk if not earlier, CFLAGS is surely set in > /etc/make.conf so "?=3D" doesn't work there, so "=3D" must be used.) 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: cc -O2 -fno-strict-aliasing -pipe -march=3Dpentium4 -DIN_GCC -DHAVE_CONFIG_H -DPREFIX=3D\"/usr\" -I/usr/obj/usr/src/gnu/usr.bin/cc/cc_int/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_int/../cc_tools -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc -I/usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/config -DHAVE_CONFIG_H -DTARGET_NAME=3D\"i386-undermydesk-freebsd\" -DIN_GCC=20 -c /usr/src/gnu/usr.bin/cc/cc_int/../../../../contrib/gcc/stor-layout.c I have added CPUTYPE=3Dp4 in make.conf. regards Clauis