diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-05-08 05:01:27 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2008-05-08 05:01:27 +0000 |
commit | 84d31bc5186265d1591d919dc0d9f040a413fed6 (patch) | |
tree | 1049a6442603900a8d6cced588cf92c54980e6ad | |
parent | Add SIZE_MAX fix. (diff) | |
download | rtems-84d31bc5186265d1591d919dc0d9f040a413fed6.tar.bz2 |
Sync with CVS HEAD.
-rw-r--r-- | contrib/crossrpms/gcc/gccnewlib.add | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/contrib/crossrpms/gcc/gccnewlib.add b/contrib/crossrpms/gcc/gccnewlib.add index 6920cecc16..bde2f438ed 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,14 +22,40 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %define _use_internal_dependency_generator 0 +BuildRequires: %{_host_rpmprefix}gcc + +%if "%{gcc_version}" >= "4.3.0" +BuildRequires: gmp-devel >= 4.1 +%if "%{_build}" != "%{_host}" +BuildRequires: %{_host_rpmprefix}gmp-devel +BuildRequires: %{_host_rpmprefix}mpfr-devel +%endif +%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} +%{?suse10_2:%define _build_mpfr 1} +%{?suse10_3:%define _build_mpfr 1} +%endif + %if "%{_build}" != "%{_host}" -BuildRequires: @rpmprefix@%{_host}-gcc BuildRequires: @rpmprefix@@tool_target@-gcc %endif %if "%{gcc_version}" >= "4.2.0" BuildRequires: flex bison +%if %build_f95 +BuildRequires: gmp-devel >= 4.1 +%if "%{?fedora}" >= "8" +BuildRequires: mpfr-devel >= 2.2.1 +%endif +%endif %endif + %if %build_gcj # Building gcj requires bison and zlib BuildRequires: bison @@ -71,6 +99,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@. |