From owner-freebsd-gnome@FreeBSD.ORG Sun May 1 21:21:52 2005 Return-Path: Delivered-To: freebsd-gnome@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88FA416A4CE for ; Sun, 1 May 2005 21:21:52 +0000 (GMT) Received: from lakermmtao09.cox.net (lakermmtao09.cox.net [68.230.240.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD94E43D1F for ; Sun, 1 May 2005 21:21:51 +0000 (GMT) (envelope-from mezz7@cox.net) Received: from mezz.mezzweb.com ([68.103.32.140]) by lakermmtao09.cox.net (InterMail vM.6.01.04.00 201-2131-118-20041027) with ESMTP id <20050501212149.MSIW6804.lakermmtao09.cox.net@mezz.mezzweb.com>; Sun, 1 May 2005 17:21:49 -0400 To: "Joe Marcus Clarke" References: <20050501210230.20876.qmail@web50205.mail.yahoo.com> <1114981523.60197.29.camel@shumai.marcuscom.com> Message-ID: Date: Sun, 01 May 2005 16:23:16 -0500 From: "Jeremy Messenger" Content-Type: text/plain; format=flowed; delsp=yes; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In-Reply-To: <1114981523.60197.29.camel@shumai.marcuscom.com> User-Agent: Opera M2/8.0 (Linux, build 1095) cc: Stuart Chalmers cc: freebsd-gnome@freebsd.org Subject: Re: CPUTYPE and CFLAGS when building Gnome 2.10.1 on FreeBSD 5.4 X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 01 May 2005 21:21:52 -0000 On Sun, 01 May 2005 16:05:23 -0500, Joe Marcus Clarke wrote: > On Sun, 2005-05-01 at 22:02 +0100, Stuart Chalmers wrote: >> Hi. >> >> I'm going to be rebuilding Gnome 2.10.1 from ports >> once FreeBSD 5.4 is released. It's all too easy to >> get too involved with CPUTYPE and CFLAGS in >> /etc/make.conf, but I was wondering what the general >> opinion/experience on these was when building Gnome. > > Use the default, and you will not encounter any problems. > >> >> I'm less concerned with CFLAGS as the 'standard' >> advice seems to be that moving from -O to -02 has >> little effect, but is changing CPUTYPE likely to make >> much difference in performance? Is there a 'highest' >> (i.e. newest) CPUTYPE (say, i686) that I can use >> before the Gnome ports start failing to build or >> become unstable during runtime. > > Actually, changing CFLAGS to -O2 has a huge effect. IF you do that > (knowing it's unsupported), you will also have to add > -fno-strict-aliasing. I did a test with GNOME 2.10.x (400 ports installed) with -02 -fno-strict-aliasing without CPUTYPE and I don't see any problem. I normal use the default, but only add with debug (ie: -g). > As for CPUTYPE, I had luck with p3 in the past, > but I have since reverted to the default. All Pentium 4 types are known > to cause problems as are some Athlon types. I don't use CPUTYPE anymore now.. It causes few pain in ass. Cheers, Mezz > Joe -- mezz7@cox.net - mezz@FreeBSD.org FreeBSD GNOME Team http://www.FreeBSD.org/gnome/ - gnome@FreeBSD.org