From 5400b49ed6dc7001b1645b5d31bbcc7d830c15c2 Mon Sep 17 00:00:00 2001 From: Juan Miguel Carceller <22276694+jmcarcell@users.noreply.github.com> Date: Tue, 23 May 2023 11:28:26 +0200 Subject: [PATCH] dd4hep: add LD_LIBRARY_PATH for plugins for Gaudi (#37824) Co-authored-by: jmcarcell --- var/spack/repos/builtin/packages/dd4hep/package.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/var/spack/repos/builtin/packages/dd4hep/package.py b/var/spack/repos/builtin/packages/dd4hep/package.py index fcd8e23e7a..3b8667c3f3 100644 --- a/var/spack/repos/builtin/packages/dd4hep/package.py +++ b/var/spack/repos/builtin/packages/dd4hep/package.py @@ -223,6 +223,8 @@ def setup_run_environment(self, env): env.set("DD4HEP", self.prefix.examples) env.set("DD4hep_DIR", self.prefix) env.set("DD4hep_ROOT", self.prefix) + env.set("LD_LIBRARY_PATH", self.prefix.lib) + env.set("LD_LIBRARY_PATH", self.prefix.lib64) def url_for_version(self, version): # dd4hep releases are dashes and padded with a leading zero