summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 c01828d720..550e306712 100644
--- a/var/spack/repos/builtin/packages/m4/package.py
+++ b/var/spack/repos/builtin/packages/m4/package.py
@@ -48,6 +48,9 @@ class M4(AutotoolsPackage):
spec = self.spec
args = ['--enable-c++']
+ if spec.satisfies('%clang') and not spec.satisfies('platform=darwin'):
+ args.append('CFLAGS=-rtlib=compiler-rt')
+
if '+sigsegv' in spec:
args.append('--with-libsigsegv-prefix={0}'.format(
spec['libsigsegv'].prefix))