No, that's still wrong.  It's correct for Mandrake's
build machine, but not for Mandrake users.  There's no
reason it shouldn't default to buildling for the arch
it's running on.  (More info below).

--- Frederic Lepied <[EMAIL PROTECTED]> wrote:
> * Thu Feb 28 2002 Frederic Lepied
> <[EMAIL PROTECTED]> 4.0.3-8mdk
> 
> - default to compile to i586 on architecture
> compatible as it should
> have always been the case.

Here's a patch (which stupid Yahoo! will add
extraneous newlines to, be careful) to rpmrc for what
it should really look like (unless someone has a
reasonable explanation why the mcpu flags should be
different, which I'm open to):

--- rpmrc~      Thu Feb 28 19:55:34 2002
+++ rpmrc       Thu Feb 28 19:58:45 2002
@@ -14,11 +14,11 @@
 # XXX this is the i386 optflags that rpm has
traditionally used in the past.
 #optflags: i386 -O2 -m486 -fno-strength-reduce
 optflags: i386 -O3 -fomit-frame-pointer -pipe
-march=i386 -ffast-math -fno-strength-reduce
-optflags: i486 -O3 -fomit-frame-pointer -pipe
-march=i486 -ffast-math -fno-strength-reduce
-optflags: k6   -O3 -fomit-frame-pointer -pipe
-march=k6 -ffast-math -fno-strength-reduce
-optflags: i586 -O3 -fomit-frame-pointer -pipe
-mcpu=pentiumpro -march=i586 -ffast-math
-fno-strength-reduce
-optflags: i686 -O3 -fomit-frame-pointer -pipe
-march=i686 -ffast-math -fno-strength-reduce
-optflags: athlon -O3 -fomit-frame-pointer -pipe
-march=athlon -ffast-math -fno-strength-reduce
+optflags: i486 -O3 -fomit-frame-pointer -pipe
-mcpu=i486 -march=i486 -ffast-math
-fno-strength-reduce
+optflags: k6   -O3 -fomit-frame-pointer -pipe
-mcpu=k6 -march=k6 -ffast-math -fno-strength-reduce
+optflags: i586 -O3 -fomit-frame-pointer -pipe
-mcpu=pentium -march=i586 -ffast-math
-fno-strength-reduce
+optflags: i686 -O3 -fomit-frame-pointer -pipe
-mcpu=pentiumpro -march=i686 -ffast-math
-fno-strength-reduce
+optflags: athlon -O3 -fomit-frame-pointer -pipe
-mcpu=athlon -march=athlon -ffast-math
-fno-strength-reduce
 optflags: ia64 -O2
 
 # XXX Please note that -mieee has been added in
rpm-3.0.5.
@@ -158,9 +158,9 @@
 
 buildarchtranslate: ia64: ia64
 
-buildarchtranslate: athlon: i586
-buildarchtranslate: i686: i586
-buildarchtranslate: k6: i586
+buildarchtranslate: athlon: athlon
+buildarchtranslate: i686: i686
+buildarchtranslate: k6: k6
 buildarchtranslate: i586: i586
 buildarchtranslate: i486: i486
 buildarchtranslate: i386: i386
@@ -207,7 +207,7 @@
 arch_compat: athlon: i686
 arch_compat: i686: i586
 arch_compat: k6: i586
-arch_compat: i586: i486
+arch_compat: i586: i486 k6
 arch_compat: i486: i386
 arch_compat: i386: noarch
 
@@ -291,7 +291,7 @@
 buildarch_compat: athlon: i686
 buildarch_compat: i686: i586
 buildarch_compat: k6: i486
-buildarch_compat: i586: i486
+buildarch_compat: i586: i486 k6
 buildarch_compat: i486: i386
 buildarch_compat: i386: noarch
 


__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

Reply via email to