support for aarch64

This commit is contained in:
Frantisek Kluknavsky 2013-11-06 15:43:13 +01:00
parent 2cc32c6a8d
commit e6ad991cd3
3 changed files with 8 additions and 1 deletions

View File

@ -57,6 +57,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
#include "gmp-mparam-sparc64.h" #include "gmp-mparam-sparc64.h"
#elif defined(__sparc__) #elif defined(__sparc__)
#include "gmp-mparam-sparc.h" #include "gmp-mparam-sparc.h"
#elif defined(__aarch64__)
#include "gmp-mparam-aarch64.h"
#else #else
#error "The gmp-devel package is not usable with the architecture." #error "The gmp-devel package is not usable with the architecture."
#endif #endif

2
gmp.h
View File

@ -57,6 +57,8 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
#include "gmp-sparc64.h" #include "gmp-sparc64.h"
#elif defined(__sparc__) #elif defined(__sparc__)
#include "gmp-sparc.h" #include "gmp-sparc.h"
#elif defined(__aarch64__)
#include "gmp-aarch64.h"
#else #else
#error "The gmp-devel package is not usable with the architecture." #error "The gmp-devel package is not usable with the architecture."
#endif #endif

View File

@ -6,7 +6,7 @@
Summary: A GNU arbitrary precision library Summary: A GNU arbitrary precision library
Name: gmp Name: gmp
Version: 5.1.3 Version: 5.1.3
Release: 1%{?dist} Release: 2%{?dist}
Epoch: 1 Epoch: 1
URL: http://gmplib.org/ URL: http://gmplib.org/
Source0: ftp://ftp.gmplib.org/pub/gmp-%{version}/gmp-%{version}.tar.bz2 Source0: ftp://ftp.gmplib.org/pub/gmp-%{version}/gmp-%{version}.tar.bz2
@ -229,6 +229,9 @@ exit 0
%changelog %changelog
* Wed Nov 06 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 1:5.1.3-2
- support for aarch64
* Wed Nov 06 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 1:5.1.3-1 * Wed Nov 06 2013 Frantisek Kluknavsky <fkluknav@redhat.com> - 1:5.1.3-1
- rebase to 5.1.3 - rebase to 5.1.3