summaryrefslogtreecommitdiff
path: root/cmake/detect-arch.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/detect-arch.c')
-rw-r--r--cmake/detect-arch.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/detect-arch.c b/cmake/detect-arch.c
index 32a8db8..d7017d8 100644
--- a/cmake/detect-arch.c
+++ b/cmake/detect-arch.c
@@ -34,7 +34,11 @@
// PowerPC
#elif defined(__powerpc__) || defined(_ppc__) || defined(__PPC__)
#if defined(__64BIT__) || defined(__powerpc64__) || defined(__ppc64__)
- #error archfound ppc64
+ #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
+ #error archfound ppc64le
+ #else
+ #error archfound ppc64
+ #endif
#else
#error archfound ppc
#endif