diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-02-27 08:44:13 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-02-27 08:44:13 +0000 |
commit | f1b2da234b45d603dbef0fd165c559fa0de01e81 (patch) | |
tree | 97c1d7fff82fa62cfea9033dfb7ed366a7ff17d8 /contrib | |
parent | 2008-02-26 Joel Sherrill <joel.sherrill@oarcorp.com> (diff) | |
download | rtems-f1b2da234b45d603dbef0fd165c559fa0de01e81.tar.bz2 |
Add mpfr support.
Diffstat (limited to 'contrib')
-rw-r--r-- | contrib/crossrpms/gcc/gccnewlib.add | 18 | ||||
-rw-r--r-- | contrib/crossrpms/gcc/prep.add | 7 |
2 files changed, 25 insertions, 0 deletions
diff --git a/contrib/crossrpms/gcc/gccnewlib.add b/contrib/crossrpms/gcc/gccnewlib.add index c29f28ce3d..00fca0ae23 100644 --- a/contrib/crossrpms/gcc/gccnewlib.add +++ b/contrib/crossrpms/gcc/gccnewlib.add @@ -8,6 +8,8 @@ %define gccnewlib_version gcc%{gcc_version}newlib%{newlib_version} %endif +%define mpfr_version 2.3.1 + Name: @rpmprefix@@tool_target@-gcc Summary: @tool_target@ gcc @@ -20,6 +22,18 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %define _use_internal_dependency_generator 0 +%if "%{gcc_version}" >= "4.3.0" +BuildRequires: gmp-devel >= 4.1 +%if "%{?fedora}" >= "8" +BuildRequires: mpfr-devel >= 2.3.0 +%endif +%if "%{?suse}" >= "10.3" +BuildRequires: mpfr-devel >= 2.3.0 +%endif +# These distros ship an insufficient mpfr +%{?el4:%define _build_mpfr 1} +%endif + %if "%{gcc_version}" >= "4.2.0" BuildRequires: flex bison %endif @@ -66,6 +80,10 @@ BuildRequires: gmp-devel @SOURCES@ +%if "%{gcc_version}" >= "4.3.0" +Source60: http://www.mpfr.org/mpfr-current/mpfr-%{mpfr_version}.tar.bz2 +%endif + %description Cross gcc for @tool_target@. diff --git a/contrib/crossrpms/gcc/prep.add b/contrib/crossrpms/gcc/prep.add index 93817c5348..4934b23374 100644 --- a/contrib/crossrpms/gcc/prep.add +++ b/contrib/crossrpms/gcc/prep.add @@ -38,6 +38,13 @@ cd .. ln -s ../newlib-%{newlib_version}/newlib gcc-%{gcc_pkgvers} %endif +%if 0%{?_build_mpfr} +%setup -q -T -D -n %{name}-%{version} -a60 +%{?PATCH60:%patch60 -p1} + # Build mpfr one-tree style + ln -s ../mpfr-%{mpfr_version} gcc-%{gcc_pkgvers}/mpfr +%endif + @PREP@ # Fix timestamps |