summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-04-21 05:24:00 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-04-21 05:24:00 +0000
commitd9e2c20b8e6864291c8aff1c97bab451f336c197 (patch)
tree0f49545f8d71c40e38c0d4ae69ceb9c81a69aea7 /contrib
parentBump GCC_RPMREL. (diff)
downloadrtems-d9e2c20b8e6864291c8aff1c97bab451f336c197.tar.bz2
Add cygwin/mingw hack.
Diffstat (limited to 'contrib')
-rw-r--r--contrib/crossrpms/gcc/gccnewlib.add12
1 files changed, 8 insertions, 4 deletions
diff --git a/contrib/crossrpms/gcc/gccnewlib.add b/contrib/crossrpms/gcc/gccnewlib.add
index d8eb188711..1ba79a23e3 100644
--- a/contrib/crossrpms/gcc/gccnewlib.add
+++ b/contrib/crossrpms/gcc/gccnewlib.add
@@ -58,24 +58,28 @@ BuildRequires: %{_host_rpmprefix}gmp-devel >= %{_gmp_minvers}
%endif
%if %{defined _mpfr_minvers}
-%{?suse10_3:%global mpfr_provided 2.2.1}
+# FIXME: This is an ugly cludge
%{?fc9:%global mpfr_provided 2.3.1}
%{?fc10:%global mpfr_provided 2.3.2}
%{?fc11:%global mpfr_provided 2.4.1}
+%{?suse10_3:%global mpfr_provided 2.2.1}
+%{?cygwin:%global mpfr_provided 2.4.1}
+%{?mingw32:%global mpfr_provided %{nil}}
%if %{defined mpfr_provided}
%if "%{mpfr_provided}" < "%{_mpfr_minvers}"
%define _build_mpfr 1
%else
+%if "%{_build}" != "%{_host}"
+BuildRequires: %{_host_rpmprefix}mpfr-devel >= %{_mpfr_minvers}
+%else
BuildRequires: mpfr-devel >= %{_mpfr_minvers}
%endif
+%endif
%else
%define _build_mpfr 1
%endif
-%if "%{_build}" != "%{_host}"
-BuildRequires: %{_host_rpmprefix}mpfr-devel >= %{_mpfr_minvers}
-%endif
%endif
%if "%{_build}" != "%{_host}"