From 71d623dbfa031f6a22c3225da57353c06434043d Mon Sep 17 00:00:00 2001 From: Orion Poplawski Date: Sat, 11 Jul 2020 18:22:01 -0600 Subject: [PATCH] GCC 10 workaround needed for RHEL > 8 as well --- hdf.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hdf.spec b/hdf.spec index 6336f56..9c005b3 100644 --- a/hdf.spec +++ b/hdf.spec @@ -158,7 +158,7 @@ cd build-static # Java requires shared libraries, fortran requires static # Temporary workaround for compiling on GCC-10 -%if (0%{?fedora} && 0%{?fedora} > 31) || (0%{?rhel} && 0%{?rhel} > 8) +%if 0%{?fedora} > 31 || 0%{?rhel} > 8 export FCFLAGS="%{build_fflags} -fallow-argument-mismatch" export FFLAGS="%{build_fflags} -fallow-argument-mismatch" %endif