From 32fe719409dfbe31251083b4f942857e7f903ea9 Mon Sep 17 00:00:00 2001 From: crivella Date: Fri, 31 Oct 2025 14:38:32 +0100 Subject: [PATCH] Give precedence to $ORIGIN locations in rpat wrappers --- easybuild/framework/easyblock.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/easybuild/framework/easyblock.py b/easybuild/framework/easyblock.py index 55107be6f9..4b4eb2cc07 100644 --- a/easybuild/framework/easyblock.py +++ b/easybuild/framework/easyblock.py @@ -2954,11 +2954,11 @@ def prepare_step(self, start_dir=True, load_tc_deps_modules=True): # $ORIGIN will be resolved by the loader to be the full path to the executable or shared object # see also https://linux.die.net/man/8/ld-linux; self.rpath_include_dirs.extend([ - os.path.join(self.installdir, 'lib'), - os.path.join(self.installdir, 'lib64'), '$ORIGIN', '$ORIGIN/../lib', '$ORIGIN/../lib64', + os.path.join(self.installdir, 'lib'), + os.path.join(self.installdir, 'lib64'), ]) # Location to store RPATH wrappers