- fix personality switch for ppc and some more architectures
authorAdrian Schröter <adrian@suse.de>
Fri, 27 Jan 2012 15:34:41 +0000 (16:34 +0100)
committerAdrian Schröter <adrian@suse.de>
Fri, 27 Jan 2012 15:34:41 +0000 (16:34 +0100)
build

diff --git a/build b/build
index 2475498..2288358 100755 (executable)
--- a/build
+++ b/build
@@ -735,7 +735,10 @@ trap fail_exit EXIT
 
 case `perl -V:archname` in
     *x86_64*) PERSONALITY_SYSCALL=135 ;;
-    *i?86*)   PERSONALITY_SYSCALL=136 ;;
+    alpha*) PERSONALITY_SYSCALL=324 ;;
+    sparc*) PERSONALITY_SYSCALL=191 ;;
+    *i?86*|ppc*|arm*|sh4|cris|m68k|s390*|unicore32|microblaze)   PERSONALITY_SYSCALL=136 ;;
+    *) echo "ARCHITECTURE PERSONALITY IS UNKNOWN"; exit 1;;
 esac
 
 shopt -s nullglob