diff options
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | sys-utils/Makefile.am | 3 | ||||
-rw-r--r-- | sys-utils/setarch.c | 3 |
3 files changed, 6 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 00157e2db..cfc217977 100644 --- a/configure.ac +++ b/configure.ac @@ -253,6 +253,7 @@ UTIL_SET_ARCH(SPARC, sparc*) UTIL_SET_ARCH(PPC, ppc*|powerpc*) UTIL_SET_ARCH(M68K, m68*) UTIL_SET_ARCH(MIPS, mips*) +UTIL_SET_ARCH(HPPA, hppa*) AC_ARG_ENABLE([arch], AS_HELP_STRING([--enable-arch], [do build arch]), diff --git a/sys-utils/Makefile.am b/sys-utils/Makefile.am index 6fc60aadd..ca5e4972c 100644 --- a/sys-utils/Makefile.am +++ b/sys-utils/Makefile.am @@ -65,6 +65,9 @@ endif if ARCH_IA64 SETARCH_LINKS += i386 ia64 endif +if ARCH_HPPA +SETARCH_LINKS += parisc parisc64 parisc32 +endif install-exec-hook: for I in $(RDEV_LINKS); do \ diff --git a/sys-utils/setarch.c b/sys-utils/setarch.c index d0cfe2294..e4a204adb 100644 --- a/sys-utils/setarch.c +++ b/sys-utils/setarch.c @@ -122,7 +122,8 @@ int set_arch(const char *pers, unsigned long options) {PER_LINUX, "ia64", "ia64"}, #endif #if defined(__hppa__) - {PER_LINUX, "parisc", "parisc"}, + {PER_LINUX32, "parisc32", "parisc"}, + {PER_LINUX32, "parisc", "parisc"}, {PER_LINUX, "parisc64", "parisc64"}, #endif #if defined(__s390x__) || defined(__s390__) |