diff options
author | snehring <snehring@users.noreply.github.com> | 2021-12-21 03:51:47 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-21 10:51:47 +0100 |
commit | 6b91d3700bbda29b5a6586a245c890fed0b75b08 (patch) | |
tree | 24e432cb819e53f5a226791d1760fcb3935a4290 /var | |
parent | 7aa2bdca4426846a74c8a9761caac67844cb57cd (diff) | |
download | spack-6b91d3700bbda29b5a6586a245c890fed0b75b08.tar.gz spack-6b91d3700bbda29b5a6586a245c890fed0b75b08.tar.bz2 spack-6b91d3700bbda29b5a6586a245c890fed0b75b08.tar.xz spack-6b91d3700bbda29b5a6586a245c890fed0b75b08.zip |
soapdenovo2: fixing compiler errors in gcc10+ (#28098)
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/soapdenovo2/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/soapdenovo2/package.py b/var/spack/repos/builtin/packages/soapdenovo2/package.py index 82e0172ab0..1804f34281 100644 --- a/var/spack/repos/builtin/packages/soapdenovo2/package.py +++ b/var/spack/repos/builtin/packages/soapdenovo2/package.py @@ -19,6 +19,14 @@ class Soapdenovo2(MakefilePackage): version('242', sha256='a0043ceb41bc17a1c3fd2b8abe4f9029a60ad3edceb2b15af3c2cfabd36aa11b') version('240', sha256='cc9e9f216072c0bbcace5efdead947e1c3f41f09baec5508c7b90f933a090909') + def flag_handler(self, name, flags): + if self.spec.satisfies('%gcc@10:'): + if name == 'cflags' or name == 'CFLAGS': + flags.append('-fcommon') + if name == 'cxxflags' or name == 'CXXFLAGS': + flags.append('-fcommon') + return (flags, None, None) + def install(self, spec, prefix): mkdirp(prefix.bin) install('SOAPdenovo-63mer', prefix.bin) |