From owner-freebsd-openoffice@FreeBSD.ORG Tue Jun 13 09:59:02 2006 Return-Path: X-Original-To: freebsd-openoffice@freebsd.org Delivered-To: freebsd-openoffice@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F045D16A41B for ; Tue, 13 Jun 2006 09:59:02 +0000 (UTC) (envelope-from nikolas.britton@gmail.com) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.199]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7BFFB43D48 for ; Tue, 13 Jun 2006 09:59:02 +0000 (GMT) (envelope-from nikolas.britton@gmail.com) Received: by nz-out-0102.google.com with SMTP id m7so992660nzf for ; Tue, 13 Jun 2006 02:59:01 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=Dz06ajnvlCJTpr+KAPFEsRQqsvsa3EiSzcqne/n/N9jHm21HW5GoWmwOzpwp8scJveqT65fcMnatA2LasoOcXwvFnJf54t2CJJgDmbx8AoFMf46DKY3dv99Z5zEHzCq4Ajo8Et1dzNYYY6TbomoUjuekaHF0VdmNmi16yu0PMlQ= Received: by 10.36.120.14 with SMTP id s14mr10529792nzc; Tue, 13 Jun 2006 02:59:01 -0700 (PDT) Received: by 10.36.101.10 with HTTP; Tue, 13 Jun 2006 02:59:01 -0700 (PDT) Message-ID: Date: Tue, 13 Jun 2006 04:59:01 -0500 From: "Nikolas Britton" To: freebsd-openoffice@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Why does OOo hardcode -mtune=pentiumpro? X-BeenThere: freebsd-openoffice@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting OpenOffice to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jun 2006 09:59:03 -0000 gmake[1]: Entering directory `/usr/ports/editors/openoffice.org-2.0/work/OOC680_m5/icu/unxfbsdi.pro/misc/build/icu/source/common' gcc-ooo -I. -I. -DHAVE_CONFIG_H -DU_COMMON_IMPLEMENTATION -O -mtune=pentiumpro -c -DPIC -fPIC -o putil.ao putil.c putil.c:153: warning: integer constant is too large for "long" type putil.c:154: warning: integer constant is too large for "long" type /usr/bin/ar rv libicuuc.a putil.ao /usr/bin/ar: creating libicuuc.a a - putil.ao g++-ooo -I. -I. -DHAVE_CONFIG_H -DU_COMMON_IMPLEMENTATION -O -mtune=pentiumpro -c -DPIC -fPIC -o uobject.ao uobject.cpp /usr/bin/ar rv libicuuc.a uobject.ao a - uobject.ao gcc-ooo -I. -I. -DHAVE_CONFIG_H -DU_COMMON_IMPLEMENTATION -O -mtune=pentiumpro -c -DPIC -fPIC -o locmap.ao locmap.c /usr/bin/ar rv libicuuc.a locmap.ao a - locmap.ao OOo seems to have -mtune=pentiumpro hard coded in, at least for icu. IIRC -mtune=cputype takes the same args as -march=cputype, why not translate CPUTYPE=cputype from make.conf into -mtune=cputype... Or just lead with two, three, options: If build detects any athlon based chip set -mtune=athlon64. if build detects any pentiumpro based chip set -mtune=pentium4. if build detects anything else don't set -mtune. I really don't like running intel tuned software on my athlon64. -- BSD Podcasts @: http://bsdtalk.blogspot.com/ http://freebsdforall.blogspot.com/