summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--var/spack/repos/builtin/packages/m4/package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/m4/package.py b/var/spack/repos/builtin/packages/m4/package.py
index b87bce6610..b14956e3ae 100644
--- a/var/spack/repos/builtin/packages/m4/package.py
+++ b/var/spack/repos/builtin/packages/m4/package.py
@@ -34,7 +34,8 @@ class M4(AutotoolsPackage):
spec = self.spec
args = ['--enable-c++']
- if spec.satisfies('%clang') and not spec.satisfies('platform=darwin'):
+ if (spec.satisfies('%clang') or spec.satisfies('%arm')) and not \
+ spec.satisfies('platform=darwin'):
args.append('CFLAGS=-rtlib=compiler-rt')
if spec.satisfies('%intel'):