summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)