]> git.pld-linux.org Git - packages/mpich.git/commitdiff
- fix build with gfortran 10
authorJakub Bogusz <qboosh@pld-linux.org>
Sat, 21 Nov 2020 18:22:54 +0000 (19:22 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Sat, 21 Nov 2020 18:22:54 +0000 (19:22 +0100)
mpich.spec

index c2f04674f6b498919f66af8f3767788ff86904d5..d0417be8f3ee5ee19188446d66b3f8d7a5f43d28 100644 (file)
@@ -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} \
This page took 0.119104 seconds and 4 git commands to generate.