diff options
-rw-r--r-- | var/spack/repos/builtin/packages/pcma/package.py | 4 |
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) |