diff --git a/var/spack/repos/builtin/packages/llvm/package.py b/var/spack/repos/builtin/packages/llvm/package.py index e8a013b249..16ab6177f7 100644 --- a/var/spack/repos/builtin/packages/llvm/package.py +++ b/var/spack/repos/builtin/packages/llvm/package.py @@ -914,7 +914,14 @@ def cmake_args(self): # Semicolon seperated list of runtimes to enable if runtimes: - cmake_args.append(define("LLVM_ENABLE_RUNTIMES", runtimes)) + cmake_args.extend( + [ + define("LLVM_ENABLE_RUNTIMES", runtimes), + define( + "RUNTIMES_CMAKE_ARGS", [define("CMAKE_INSTALL_RPATH_USE_LINK_PATH", True)] + ), + ] + ) return cmake_args