From 5215bc8852e8c14980882c5cc3d6ebbf22d1c367 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Thu, 18 Jul 2024 14:38:29 -0600 Subject: [PATCH] patch library rpaths --- SConstruct | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SConstruct b/SConstruct index 1953974e..4cc421d1 100644 --- a/SConstruct +++ b/SConstruct @@ -518,8 +518,9 @@ elif platform == "posix": "BoE Character Editor", "BoE Scenario Editor", ] - for targ in targets: - atexit.register(lambda: subprocess.call(['patchelf', '--set-rpath', '.', targ], cwd='build/Blades of Exile')) + atexit.register(lambda: + for targ in targets + [so for so in os.listdir("build/Blades of Exile") if '.so' in so]: + subprocess.call(['patchelf', '--set-rpath', '.', targ], cwd='build/Blades of Exile')) bundled_libs += Split(""" GL X11