summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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}"