summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnssi Hannula <anssi@mandriva.org>2010-01-24 11:42:14 +0000
committerAnssi Hannula <anssi@mandriva.org>2010-01-24 11:42:14 +0000
commit8c492167a44fb84b5424773fb897c1515b3b2e70 (patch)
treea23fa49434a2beaee87b0f9d1174b39c6aa9fac1
parent54d926c906be3a82cc1b143e00d2ba6164758564 (diff)
downloadmultiarch-utils-8c492167a44fb84b5424773fb897c1515b3b2e70.tar
multiarch-utils-8c492167a44fb84b5424773fb897c1515b3b2e70.tar.gz
multiarch-utils-8c492167a44fb84b5424773fb897c1515b3b2e70.tar.bz2
multiarch-utils-8c492167a44fb84b5424773fb897c1515b3b2e70.tar.xz
multiarch-utils-8c492167a44fb84b5424773fb897c1515b3b2e70.zip
fix broken sparc64 check (from Per Øyvind Karlsen, #27277)
-rw-r--r--NEWS1
-rw-r--r--multiarch-dispatch.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index 61ef3df..06c80ec 100644
--- a/NEWS
+++ b/NEWS
@@ -1 +1,2 @@
- remove dispatch file for host.def, it is no longer used
+- fix broken sparc64 check (from Per Øyvind Karlsen, #27277)
diff --git a/multiarch-dispatch.h b/multiarch-dispatch.h
index be91bb2..8d9ac5d 100644
--- a/multiarch-dispatch.h
+++ b/multiarch-dispatch.h
@@ -25,7 +25,7 @@
#include _MULTIARCH_MAKE_HEADER(ppc64,_MULTIARCH_HEADER)
#elif defined(__powerpc__)
#include _MULTIARCH_MAKE_HEADER(ppc,_MULTIARCH_HEADER)
-#elif defined(__sparc_v9__)
+#elif defined(__sparc__) && defined(__arch64__)
#include _MULTIARCH_MAKE_HEADER(sparc64,_MULTIARCH_HEADER)
#elif defined(__sparc__)
#include _MULTIARCH_MAKE_HEADER(sparc,_MULTIARCH_HEADER)