www.delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1999/03/08/07:29:38

Sender: plong AT mwunix DOT mitre DOT org
Message-ID: <36E3C22F.C96BEB50@mitre.org>
Date: Mon, 08 Mar 1999 07:27:27 -0500
From: Philip Long <plong AT mitre DOT org>
X-Mailer: Mozilla 4.5 [en] (X11; I; Linux 2.2.1 i686)
X-Accept-Language: ko, en
MIME-Version: 1.0
To: pgcc AT delorie DOT com
Subject: Re: How well do the -mcpu=amdk6 -march=amdk6 options work
References: <002001be6821$f9ecae80$0217a8c0 AT straylight DOT millennium DOT rose>
Reply-To: pgcc AT delorie DOT com

Allan Hsu wrote:

> In order to get srpms to compile with different optimizations, you need to
> edit/create /etc/rpmrc. I use this line on my pII-300:
> optflags: i386 -O6 -march=pentiumpro
> btw, I think -march=cpublegh implies -mcpu=cpublegh, so your -mcpu=amdk6 may
> be redundant.
>
>             -yt.
>

    That would work and it's an easy way to do that, but only if you keep your
packages to yourself.  My rpmrc file for my PII is below.  It results in RPMS
(many of wich can be found at contrib.redhat.com/libc6/i686) with the .i686.rpm
extension to emphasize the fact that it may not work for 3-4-5(86)/

#############################################################
# Values overiding the Default values in /usr/lib/rpmrc
#


optflags: i686 -O6 -march=pentiumpro
optflags: i586 -O6 -march=pentium


#############################################################
# For a given uname().machine, the default build arch

buildarchtranslate: osfmach3_i686: i686
buildarchtranslate: osfmach3_i586: i586
buildarchtranslate: osfmach3_i486: i486

buildarchtranslate: i686: i686
buildarchtranslate: i586: i586
buildarchtranslate: i486: i486



For my k6 I translate 586 to amdk6 and apply the -O6 -march=amdk6 flags.  This
results in .amdk6.rpm packages which need to be installed using the
--ignorearch flag.



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019