diff options
author | sknigh <sknigh@sandia.gov> | 2017-07-28 09:32:53 -0700 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2017-07-28 11:32:53 -0500 |
commit | 92ea7c43375c3c25e712e0b7c3bc8e9dab02b832 (patch) | |
tree | 2db192e1a769d66e5df6ef70c72204af3ba076ae | |
parent | c5d2206206a77300515467dfcd9195a776b6bda6 (diff) | |
download | spack-92ea7c43375c3c25e712e0b7c3bc8e9dab02b832.tar.gz spack-92ea7c43375c3c25e712e0b7c3bc8e9dab02b832.tar.bz2 spack-92ea7c43375c3c25e712e0b7c3bc8e9dab02b832.tar.xz spack-92ea7c43375c3c25e712e0b7c3bc8e9dab02b832.zip |
Fix for m4%clang (#4912)
* Fix for m4%clang
* Restricted condition to not subsitute rtlib on OSX
-rw-r--r-- | var/spack/repos/builtin/packages/m4/package.py | 3 |
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)) |