From 4a62cc13bea8ababab5feb5ff4a86ed6870a4cd5 Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 24 Dec 2020 13:22:00 +0100 Subject: [PATCH] makewheel: Set --force-rpath when calling patchelf This is necessary to avoid the creation of a DT_RUNPATH instead of DT_RPATH. DT_RUNPATH does not have the desired behaviour. --- makepanda/makewheel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makepanda/makewheel.py b/makepanda/makewheel.py index dbd559172c..adf691a559 100644 --- a/makepanda/makewheel.py +++ b/makepanda/makewheel.py @@ -455,7 +455,7 @@ class WheelFile(object): self.consider_add_dependency(target_dep, dep) subprocess.call(["strip", "-s", temp.name]) - subprocess.call(["patchelf", "--set-rpath", "$ORIGIN", temp.name]) + subprocess.call(["patchelf", "--force-rpath", "--set-rpath", "$ORIGIN", temp.name]) source_path = temp.name