[packages/python-scipy] set -fallow-argument-mismatch with gfortran >= 10
atler
atler at pld-linux.org
Sat Mar 6 14:04:35 CET 2021
commit ae714ccd502b1ffe6503f300d02c463303bdf4fc
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Mar 6 14:02:36 2021 +0100
set -fallow-argument-mismatch with gfortran >= 10
see https://github.com/scipy/scipy/pull/11842
python-scipy.spec | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/python-scipy.spec b/python-scipy.spec
index 0cbac34..34bac4b 100644
--- a/python-scipy.spec
+++ b/python-scipy.spec
@@ -22,7 +22,7 @@ URL: https://www.scipy.org/
BuildRequires: blas-devel >= 3.6.0
BuildRequires: gcc-fortran
BuildRequires: lapack-devel >= 3.6.0
-BuildRequires: rpmbuild(macros) >= 1.714
+BuildRequires: rpmbuild(macros) >= 1.750
BuildRequires: tar >= 1:1.22
BuildRequires: xz
%if %{with python2}
@@ -100,7 +100,10 @@ Dokumentacja API modułu SciPy.
# instead of appending proper options (like -shared)
CFLAGS="%{rpmcflags}"
LDFLAGS="%{rpmldflags} -shared"
-export CFLAGS LDFLAGS
+%if %{_ver_ge %(rpm -q --qf='%%{VERSION}' gcc-fortran) 10}
+FFLAGS="-fallow-argument-mismatch"
+%endif
+export CFLAGS LDFLAGS FFLAGS
export BLAS=%{_libdir}
export LAPACK=%{_libdir}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-scipy.git/commitdiff/ae714ccd502b1ffe6503f300d02c463303bdf4fc
More information about the pld-cvs-commit
mailing list