From 58c48fb2db76f73c359947ddf23ade6b496ce627 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 31 Dec 2009 18:11:34 +0100 Subject: [PATCH] SPARC architecture definition updates The RPM configuration files build sparcv9v packages with -mtune=niagara, but Fedora uses -mcpu=niagara instead, making the produced packages incompatible with sparcv9. Go the safe route and define a strict usage hierarchy similar to i386-686. Signed-off-by: Jan Engelhardt --- common_functions | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/common_functions b/common_functions index 0770ccd..f02620a 100644 --- a/common_functions +++ b/common_functions @@ -14,8 +14,12 @@ set_build_arch() i586) BUILD_ARCH="i586:i486:i386" ;; i486) BUILD_ARCH="i486:i386" ;; x86_64) BUILD_ARCH="x86_64:i686:i586:i486:i386" ;; - sparc64*) BUILD_ARCH="sparc64v:sparc64:sparcv9v:sparcv9:sparcv8:sparc";; - sparc*) BUILD_ARCH="sparcv9v:sparcv9:sparcv8:sparc";; + sparc64v) BUILD_ARCH="sparc64v:sparc64:sparcv9v:sparcv9:sparcv8:sparc" ;; + sparc64) BUILD_ARCH="sparc64:sparcv9:sparcv8:sparc" ;; + sparcv9v) BUILD_ARCH="sparcv9v:sparcv9:sparcv8:sparc" ;; + sparcv9) BUILD_ARCH="sparcv9:sparcv8:sparc" ;; + sparcv8) BUILD_ARCH="sparcv8:sparc" ;; + sparc) BUILD_ARCH="sparc" ;; esac if test "$BUILD_ARCH" != "${BUILD_ARCH#i686}" ; then cpuflags=`grep ^flags /proc/cpuinfo` -- 2.7.4