diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/root/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/root/package.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/root/package.py b/var/spack/repos/builtin/packages/root/package.py index b1591f455e..0e590e30ae 100644 --- a/var/spack/repos/builtin/packages/root/package.py +++ b/var/spack/repos/builtin/packages/root/package.py @@ -492,12 +492,16 @@ class Root(CMakePackage): env.prepend_path('PATH', self.prefix.bin) env.append_path('CMAKE_MODULE_PATH', '{0}/cmake' .format(self.prefix)) + if "+rpath" not in self.spec: + env.prepend_path('LD_LIBRARY_PATH', self.prefix.lib) def setup_dependent_run_environment(self, env, dependent_spec): env.set('ROOTSYS', self.prefix) env.set('ROOT_VERSION', 'v{0}'.format(self.version.up_to(1))) env.prepend_path('PYTHONPATH', self.prefix.lib) env.prepend_path('PATH', self.prefix.bin) + if "+rpath" not in self.spec: + env.prepend_path('LD_LIBRARY_PATH', self.prefix.lib) def _process_opts(self, *opt_lists): """Process all provided boolean option lists into CMake arguments. |