From 39cfa9630cc1fa60e14790cf9a1728ffcc8a65c3 Mon Sep 17 00:00:00 2001 From: Nick Robison Date: Thu, 23 Jul 2020 02:55:03 -0400 Subject: [PATCH] [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. --- var/spack/repos/builtin/packages/m4/package.py | 3 +++ 1 file changed, 3 insertions(+) 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 @@ def configure_args(self): 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')