[gmp] - Fix gmp headers for ppc64le (#1083429)
Dan Horák
sharkcz at fedoraproject.org
Thu Jul 10 12:58:27 UTC 2014
commit e271a2d08aad23079e12499014c350650a2f2abf
Author: Dan Horák <dan at danny.cz>
Date: Thu Jul 10 14:58:42 2014 +0200
- Fix gmp headers for ppc64le (#1083429)
gmp-mparam.h | 8 ++++++++
gmp.h | 8 ++++++++
gmp.spec | 5 ++++-
3 files changed, 20 insertions(+), 1 deletions(-)
---
diff --git a/gmp-mparam.h b/gmp-mparam.h
index 755efd8..5621f5d 100644
--- a/gmp-mparam.h
+++ b/gmp-mparam.h
@@ -40,9 +40,17 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
#elif defined(__ia64__)
#include "gmp-mparam-ia64.h"
#elif defined(__powerpc64__)
+# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#include "gmp-mparam-ppc64.h"
+# else
+#include "gmp-mparam-ppc64le.h"
+# endif
#elif defined(__powerpc__)
+# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#include "gmp-mparam-ppc.h"
+# else
+#include "gmp-mparam-ppcle.h"
+# endif
#elif defined(__s390x__)
#include "gmp-mparam-s390x.h"
#elif defined(__s390__)
diff --git a/gmp.h b/gmp.h
index bdd236c..3e0381a 100644
--- a/gmp.h
+++ b/gmp.h
@@ -40,9 +40,17 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
#elif defined(__ia64__)
#include "gmp-ia64.h"
#elif defined(__powerpc64__)
+# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#include "gmp-ppc64.h"
+# else
+#include "gmp-ppc64le.h"
+# endif
#elif defined(__powerpc__)
+# if __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
#include "gmp-ppc.h"
+# else
+#include "gmp-ppcle.h"
+# endif
#elif defined(__s390x__)
#include "gmp-s390x.h"
#elif defined(__s390__)
diff --git a/gmp.spec b/gmp.spec
index 8b62d9a..4408fbd 100644
--- a/gmp.spec
+++ b/gmp.spec
@@ -6,7 +6,7 @@
Summary: A GNU arbitrary precision library
Name: gmp
Version: 6.0.0
-Release: 4%{?dist}
+Release: 5%{?dist}
Epoch: 1
URL: http://gmplib.org/
Source0: ftp://ftp.gmplib.org/pub/gmp-%{version}/gmp-%{version}a.tar.bz2
@@ -230,6 +230,9 @@ exit 0
%{_libdir}/libgmpxx.a
%changelog
+* Thu Jul 10 2014 Brent Baude <baude at us.ibm.com> - 1:6.0.0-5
+- Fix gmp headers for ppc64le (#1083429)
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1:6.0.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
More information about the scm-commits
mailing list