mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-22 07:24:31 +08:00
Add cygwin/mingw hack.
This commit is contained in:
@@ -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}"
|
||||
|
||||
Reference in New Issue
Block a user