summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorNick Robison <nicholas.a.robison@omb.eop.gov>2020-07-23 02:55:03 -0400
committerGitHub <noreply@github.com>2020-07-22 23:55:03 -0700
commit39cfa9630cc1fa60e14790cf9a1728ffcc8a65c3 (patch)
tree35880bd1234053ef03f6bc6c97db8b57b805ca7b /var
parent4b33558707d13da33dbb8f0f7c7878a175abc8e8 (diff)
downloadspack-39cfa9630cc1fa60e14790cf9a1728ffcc8a65c3.tar.gz
spack-39cfa9630cc1fa60e14790cf9a1728ffcc8a65c3.tar.bz2
spack-39cfa9630cc1fa60e14790cf9a1728ffcc8a65c3.tar.xz
spack-39cfa9630cc1fa60e14790cf9a1728ffcc8a65c3.zip
[M4] Add missing compiler flag on Cray Compiler (#17604)
* [M4] Add missing compiler flag on Cray Compiler The new version of the Cray Compiler are based on Clang, which means we need to add the same LDFLAG as other clang environments.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/m4/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/m4/package.py b/var/spack/repos/builtin/packages/m4/package.py
index 7b649656d0..daf89aed16 100644
--- a/var/spack/repos/builtin/packages/m4/package.py
+++ b/var/spack/repos/builtin/packages/m4/package.py
@@ -36,6 +36,9 @@ class M4(AutotoolsPackage, GNUMirrorPackage):
spec = self.spec
args = ['--enable-c++']
+ if spec.satisfies('%cce@9:'):
+ args.append('LDFLAGS=-rtlib=compiler-rt')
+
if spec.satisfies('%clang') and not spec.satisfies('platform=darwin'):
args.append('LDFLAGS=-rtlib=compiler-rt')