From bd58801415dc0acebfd7368f66c43e50563a9891 Mon Sep 17 00:00:00 2001 From: Juan Miguel Carceller <22276694+jmcarcell@users.noreply.github.com> Date: Wed, 9 Aug 2023 16:42:05 +0200 Subject: [PATCH] dd4hep: fix setting LD_LIBRARY_PATH (#38015) Co-authored-by: jmcarcell --- var/spack/repos/builtin/packages/dd4hep/package.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/var/spack/repos/builtin/packages/dd4hep/package.py b/var/spack/repos/builtin/packages/dd4hep/package.py index 7589feabf9..8d47d2827c 100644 --- a/var/spack/repos/builtin/packages/dd4hep/package.py +++ b/var/spack/repos/builtin/packages/dd4hep/package.py @@ -229,8 +229,7 @@ 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) + env.prepend_path("LD_LIBRARY_PATH", self.spec["dd4hep"].libs.directories[0]) def url_for_version(self, version): # dd4hep releases are dashes and padded with a leading zero