diff options
-rwxr-xr-x | installplatform | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/installplatform b/installplatform index 78528812b..ab403f798 100755 --- a/installplatform +++ b/installplatform @@ -117,6 +117,53 @@ for ARCH in noarch `grep ^arch_canon $RPMRC | cut -d: -f2`; do # skip architectures for which we dont have full config parameters [ -z "$CANONARCH" ] && continue + for macro in $(rpm --showrc | grep _host_cpu | cut -f2 );do + case "$macro" in + sparc64*) + CANONCOLOR=3 + ;; + sparc*) + CANONCOLOR=0 + ;; + s390) + CANONCOLOR=0 + ;; + s390x) + CANONCOLOR=3 + ;; + ppc64*) + CANONCOLOR=3 + ;; + ppc*) + CANONCOLOR=0 + ;; + i?86|pentium?|athlon|geode) + CANONCOLOR=0 + ;; + x86_64|amd64|ia32e) + CANONCOLOR=3 + ;; + ia64) + CANONCOLOR=2 + ;; + sh*) + CANONCOLOR=0 + ;; + arm*) + CANONCOLOR=0 + ;; + alpha*) + CANONCOLOR=0 + ;; + aarch64) + CANONCOLOR=3 + ;; + noarch) + CANONCOLOR=0 + ;; + esac + done + if [ "$OS" = "linux" ] && [ "$CANONCOLOR" = 3 ]; then LIB=${LIB}64 fi |