diff options
author | Jimmy Tang <jcftang@gmail.com> | 2017-04-21 17:29:42 +0100 |
---|---|---|
committer | Adam J. Stewart <ajstewart426@gmail.com> | 2017-04-21 11:29:41 -0500 |
commit | f86ed1e34dc90bade8127b490a4b8823d2af6514 (patch) | |
tree | a55374c1596eab7ba58c083952f9fe1da29907ba /var | |
parent | a017c5e2efd479c27debba28c4cdbba52a0bba81 (diff) | |
download | spack-f86ed1e34dc90bade8127b490a4b8823d2af6514.tar.gz spack-f86ed1e34dc90bade8127b490a4b8823d2af6514.tar.bz2 spack-f86ed1e34dc90bade8127b490a4b8823d2af6514.tar.xz spack-f86ed1e34dc90bade8127b490a4b8823d2af6514.zip |
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
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/llvm/package.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/llvm/package.py b/var/spack/repos/builtin/packages/llvm/package.py index 398daefc8f..04b4efd491 100644 --- a/var/spack/repos/builtin/packages/llvm/package.py +++ b/var/spack/repos/builtin/packages/llvm/package.py @@ -389,6 +389,9 @@ class Llvm(Package): 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() |