summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorDylan Simon <dylan@dylex.net>2021-07-23 04:34:26 -0400
committerGitHub <noreply@github.com>2021-07-23 01:34:26 -0700
commit7b0d869c3c22c665c1466548defa6424ebd3f913 (patch)
tree16555ec999373e94c8f9e1b52ea733892e6c03c2 /var
parentdc3e1d9a40332572152ef0fdc9a29f2915161ebc (diff)
downloadspack-7b0d869c3c22c665c1466548defa6424ebd3f913.tar.gz
spack-7b0d869c3c22c665c1466548defa6424ebd3f913.tar.bz2
spack-7b0d869c3c22c665c1466548defa6424ebd3f913.tar.xz
spack-7b0d869c3c22c665c1466548defa6424ebd3f913.zip
pgplot: fix with gcc<10 (#25042)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/pgplot/package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/pgplot/package.py b/var/spack/repos/builtin/packages/pgplot/package.py
index 89a0513773..ac5011cdb7 100644
--- a/var/spack/repos/builtin/packages/pgplot/package.py
+++ b/var/spack/repos/builtin/packages/pgplot/package.py
@@ -38,7 +38,8 @@ class Pgplot(MakefilePackage):
('@CFLAGC@', ("-Wall -fPIC -DPG_PPU -O -std=c89 " +
"-Wno-error=implicit-function-declaration")),
('@FCOMPL@', self.compiler.f77),
- ('@FFLAGC@', "-Wall -fPIC -O -ffixed-line-length-none -fallow-invalid-boz"),
+ ('@FFLAGC@', "-Wall -fPIC -O -ffixed-line-length-none" +
+ (" -fallow-invalid-boz" if spec.satisfies('%gcc@10:') else "")),
('@LIBS@', "-lgfortran"),
('@SHARED_LD@', self.compiler.cc + " -shared -o $SHARED_LIB -lgfortran"),
]