Fix for llvm 4.0.0 on centos (#3904)

* Fix for llvm 4.0.0 on centos

This addresses https://github.com/LLNL/spack/issues/3791

* Only enable this option if on linux

* Change condition to satisfy standard
This commit is contained in:
Jimmy Tang 2017-04-21 17:29:42 +01:00 committed by Adam J. Stewart
parent a017c5e2ef
commit f86ed1e34d

View File

@ -389,6 +389,9 @@ def install(self, spec, prefix):
raise SpackException(
'The lldb variant requires the `+clang` variant')
if spec.satisfies('@4.0.0:') and spec.satisfies('platform=linux'):
cmake_args.append('-DCMAKE_BUILD_WITH_INSTALL_RPATH=1')
with working_dir('spack-build', create=True):
cmake(*cmake_args)
make()