[packages/parallel-netcdf] - use -fallow-argument-mismatch for gfortran 10+

qboosh qboosh at pld-linux.org
Sun Nov 22 21:38:33 CET 2020


commit 1b831305da8ec1362a30c1c647ead43578e29761
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Nov 22 21:38:48 2020 +0100

    - use -fallow-argument-mismatch for gfortran 10+

 parallel-netcdf.spec | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/parallel-netcdf.spec b/parallel-netcdf.spec
index c462a15..e4ca32f 100644
--- a/parallel-netcdf.spec
+++ b/parallel-netcdf.spec
@@ -22,6 +22,7 @@ BuildRequires:	libstdc++-devel
 BuildRequires:	libtool >= 2:2.4.2
 # mpicc and co.
 BuildRequires:	mpich-devel
+BuildRequires:	mpich-fortran-devel
 BuildRequires:	m4
 BuildRequires:	rpmbuild(macros) >= 1.752
 %if %{with apidocs}
@@ -54,7 +55,7 @@ Summary:	Header files for PnetCDF library
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki PnetCDF
 Group:		Development/Libraries
 Requires:	%{name} = %{version}-%{release}
-Requires:	mpich-devel
+Requires:	mpich-fortran-devel
 
 %description devel
 Header files for PnetCDF library.
@@ -96,6 +97,11 @@ Dokumentacja API biblioteki PnetCDF.
 %{__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 \
 	%{?with_apidocs:--enable-doxygen} \
 	--disable-silent-rules \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/parallel-netcdf.git/commitdiff/1b831305da8ec1362a30c1c647ead43578e29761



More information about the pld-cvs-commit mailing list