]> git.pld-linux.org Git - packages/python-scipy.git/commitdiff
set -fallow-argument-mismatch with gfortran >= 10
authorJan Palus <atler@pld-linux.org>
Sat, 6 Mar 2021 13:02:36 +0000 (14:02 +0100)
committerJan Palus <atler@pld-linux.org>
Sat, 6 Mar 2021 13:02:36 +0000 (14:02 +0100)
see https://github.com/scipy/scipy/pull/11842

python-scipy.spec

index 0cbac34456c76446afdeabbd30395c9bbd90d52d..34bac4b20eff04593c8671631048e80fa8a06499 100644 (file)
@@ -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}
This page took 0.116414 seconds and 4 git commands to generate.