From: Jakub Bogusz Date: Sat, 21 Nov 2020 18:22:54 +0000 (+0100) Subject: - fix build with gfortran 10 X-Git-Tag: auto/th/mpich-3.1.4-1~2 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=e6fc440a8baa917b37a204eb4ea945926e59e6a2;p=packages%2Fmpich.git - fix build with gfortran 10 --- diff --git a/mpich.spec b/mpich.spec index c2f0467..d0417be 100644 --- a/mpich.spec +++ b/mpich.spec @@ -24,6 +24,7 @@ BuildRequires: hwloc-devel >= 1.9.0 BuildRequires: libstdc++-devel BuildRequires: libtool >= 2:2 BuildRequires: openpa-devel +BuildRequires: rpmbuild(macros) >= 1.750 Requires: hwloc-libs >= 1.9.0 Provides: mpi BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) @@ -88,6 +89,11 @@ Biblioteki statyczne MPICH. %{__autoconf} %{__autoheader} %{__automake} +%define gfortran_version %(%{gfortran} -dumpversion) +%if "%{_ver_ge '%{gfortran_version}' '10.0'}" == "1" +FFLAGS="%{rpmcflags} -fallow-argument-mismatch" +FCFLAGS="%{rpmcflags} -fallow-argument-mismatch" +%endif %configure \ --disable-silent-rules \ %{?with_blcr:--enable-checkpointing} \