Accepting request 817964 from home:eeich:branches:science

- With gcc10, some fortran code started failing to build -
  add compiler option -std=legacy to fix (bsc#1173549).

OBS-URL: https://build.opensuse.org/request/show/817964
OBS-URL: https://build.opensuse.org/package/show/science/mumps?expand=0&rev=47
This commit is contained in:
Egbert Eich 2020-07-01 05:26:47 +00:00 committed by Git OBS Bridge
parent 0dd645b217
commit b192b198d2
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jun 30 20:05:56 UTC 2020 - Egbert Eich <eich@suse.com>
- With gcc10, some fortran code started failing to build -
add compiler option -std=legacy to fix (bsc#1173549).
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 2 07:50:37 UTC 2020 - Egbert Eich <eich@suse.com> Tue Jun 2 07:50:37 UTC 2020 - Egbert Eich <eich@suse.com>

View File

@ -580,7 +580,7 @@ module load openblas scalapack
%if %{with mpi} %if %{with mpi}
# Set LD_LIBRARY_PATH and PATH # Set LD_LIBRARY_PATH and PATH
%define C_C mpicc %define C_C mpicc
%define F_C mpif77 %define F_C mpif77 -std=legacy
%define F_L mpif77 %define F_L mpif77
%define SCALAP -lscalapack %{!?with_hpc:-lblacs} %define SCALAP -lscalapack %{!?with_hpc:-lblacs}
%define MUMPS_LIBF77 %{!?with_hpc:-L%{my_libdir}} %{?mumps_f77_mpilibs} %define MUMPS_LIBF77 %{!?with_hpc:-L%{my_libdir}} %{?mumps_f77_mpilibs}
@ -590,7 +590,7 @@ module load openblas scalapack
%define LIBS \\\$(LIBPAR) %define LIBS \\\$(LIBPAR)
%else # mpi %else # mpi
%define C_C gcc %define C_C gcc
%define F_C gfortran %define F_C gfortran -std=legacy
%define F_L gfortran %define F_L gfortran
%define LIBSEQNEEDED libseqneeded %define LIBSEQNEEDED libseqneeded
%define MUMPS_LIBF77 -lmpiseq%{?PLAT} %define MUMPS_LIBF77 -lmpiseq%{?PLAT}