- add superH support (#437688)

This commit is contained in:
Ivana Varekova 2008-03-19 13:21:25 +00:00
parent c26ffb5a7c
commit 7ea96a3fa1
3 changed files with 12 additions and 1 deletions

View File

@ -52,6 +52,8 @@ MA 02111-1307, USA. */
#include "gmp-mparam-x86_64.h"
#elif defined(__alpha__)
#include "gmp-mparam-alpha.h"
#elif defined(__sh__)
#include "gmp-mparam-sh.h"
#else
#error "The gmp-devel package is not usable with the architecture."
#endif

2
gmp.h
View File

@ -53,6 +53,8 @@ MA 02111-1307, USA. */
#include "gmp-x86_64.h"
#elif defined(__alpha__)
#include "gmp-alpha.h"
#elif defined(__sh__)
#include "gmp-sh.h"
#else
#error "The gmp-devel package is not usable with the architecture."
#endif

View File

@ -8,7 +8,7 @@
Summary: A GNU arbitrary precision library
Name: gmp
Version: 4.2.2
Release: 6%{?dist}
Release: 7%{?dist}
URL: http://gmplib.org/
Source0: ftp://ftp.gnu.org/pub/gnu/gmp/gmp-%{version}.tar.bz2
Source2: gmp.h
@ -132,6 +132,10 @@ basearch=i386
%ifarch %{arm}
basearch=arm
%endif
# superH architecture support
%ifarch sh3 sh4
basearch=sh
%endif
# Rename files and install wrappers
mv %{buildroot}/%{_includedir}/gmp.h %{buildroot}/%{_includedir}/gmp-${basearch}.h
@ -199,6 +203,9 @@ exit 0
%changelog
* Wed Mar 19 2008 Ivana Varekova <varekova@redhat.com> 4.2.2-7
- add superH support (#437688)
* Wed Feb 13 2008 Ivana varekova <varekova@redhat.com> 4.2.2-6
- fix gcc-4.3 problem - add <cstdio> (#432336)