From d9e2c20b8e6864291c8aff1c97bab451f336c197 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Tue, 21 Apr 2009 05:24:00 +0000 Subject: Add cygwin/mingw hack. --- contrib/crossrpms/gcc/gccnewlib.add | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'contrib') 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}" -- cgit v1.2.3