[packages/netcdf-fortran] - pass -fallow-argument-mismatch for gfortran 10+; release 2
qboosh
qboosh at pld-linux.org
Mon Nov 16 19:09:33 CET 2020
commit d69ab57af5c8200c3cc307162762b7ce24a8e7ad
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Mon Nov 16 19:09:30 2020 +0100
- pass -fallow-argument-mismatch for gfortran 10+; release 2
netcdf-fortran.spec | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/netcdf-fortran.spec b/netcdf-fortran.spec
index 240182c..4922703 100644
--- a/netcdf-fortran.spec
+++ b/netcdf-fortran.spec
@@ -8,7 +8,7 @@ Summary: NetCDF Fortran library
Summary(pl.UTF-8): Biblioteka NetCDF dla języka Fortran
Name: netcdf-fortran
Version: 4.5.3
-Release: 1
+Release: 2
License: BSD-like
Group: Libraries
Source0: ftp://ftp.unidata.ucar.edu/pub/netcdf/%{name}-%{version}.tar.gz
@@ -90,10 +90,15 @@ Statyczna wersja biblioteki netCDF dla języka Fortran.
%{__aclocal} -I m4
%{__autoconf}
%{__automake}
-# specify gFortran, configure detection may fail if FC specifies *-gfortran different `which gfortran`
+%define gfortran_version %(gfortran -dumpversion)
CPPFLAGS="%{rpmcppflags} -DgFortran=1"
%configure \
+%if "%{_ver_ge '%{gfortran_version}' '10.0'}" == "1"
+ FCFLAGS="%{rpmcflags} -fallow-argument-mismatch" \
+ FFLAGS="%{rpmcflags} -fallow-argument-mismatch" \
+%else
FCFLAGS="%{rpmcflags}" \
+%endif
%{!?with_f2003:--disable-f03} \
%{!?with_static_libs:--disable-static}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/netcdf-fortran.git/commitdiff/d69ab57af5c8200c3cc307162762b7ce24a8e7ad
More information about the pld-cvs-commit
mailing list