[packages/mpich] - fix build with gfortran 10

qboosh qboosh at pld-linux.org
Sat Nov 21 19:22:57 CET 2020


commit e6fc440a8baa917b37a204eb4ea945926e59e6a2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Nov 21 19:22:54 2020 +0100

    - fix build with gfortran 10

 mpich.spec | 6 ++++++
 1 file changed, 6 insertions(+)
---
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} \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mpich.git/commitdiff/e6fc440a8baa917b37a204eb4ea945926e59e6a2



More information about the pld-cvs-commit mailing list