summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSoonKyu Park <sk7.park@samsung.com>2016-07-12 22:17:42 +0900
committerSoonKyu Park <sk7.park@samsung.com>2016-07-13 15:35:48 +0900
commit732e3b8d5428645bb83d525a1ca5215488faff88 (patch)
tree04fba5f2221e5161d5bda6ac0a147c1c23f9dacf
parent191ae1086c8990fc1f6b0c6cc3a5a3a30fe18743 (diff)
downloadrpm-732e3b8d5428645bb83d525a1ca5215488faff88.tar.gz
rpm-732e3b8d5428645bb83d525a1ca5215488faff88.tar.bz2
rpm-732e3b8d5428645bb83d525a1ca5215488faff88.zip
libdir macro which is re-defined in each platform macro : is not defined by ARCH but by _host_cpu Change-Id: I2b5a10c817a1b8703bc3e51e8970ea73e49c5815
-rwxr-xr-xinstallplatform47
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