summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorsnehring <snehring@users.noreply.github.com>2021-12-21 03:41:44 -0600
committerGitHub <noreply@github.com>2021-12-21 10:41:44 +0100
commit5005e9a8564feb1b39e37780170ef2df97437986 (patch)
tree9be722bd78551d61c3768d2171f713da81232a34 /var
parent0a43dd1019b69cab7f411a2f7224e16c206ba3e2 (diff)
downloadspack-5005e9a8564feb1b39e37780170ef2df97437986.tar.gz
spack-5005e9a8564feb1b39e37780170ef2df97437986.tar.bz2
spack-5005e9a8564feb1b39e37780170ef2df97437986.tar.xz
spack-5005e9a8564feb1b39e37780170ef2df97437986.zip
pcma: fixing compilation issues with gcc10+ (#28101)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/pcma/package.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/pcma/package.py b/var/spack/repos/builtin/packages/pcma/package.py
index 095247dcb5..c656683f8e 100644
--- a/var/spack/repos/builtin/packages/pcma/package.py
+++ b/var/spack/repos/builtin/packages/pcma/package.py
@@ -18,6 +18,10 @@ class Pcma(MakefilePackage):
def edit(self, spec, prefix):
makefile = FileFilter('makefile')
makefile.filter('gcc', spack_cc)
+ if spec.satisfies('%gcc@10:'):
+ # they missed one
+ filter_file(r'^sint \*seqlen_array;$', 'extern sint *seqlen_array;',
+ 'calctree.c')
def install(self, spec, prefix):
mkdirp(prefix.bin)