Mail Archives: pgcc/1999/03/08/07:29:38
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 -