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.
This commit is contained in:
rdb 2020-12-24 13:22:00 +01:00
parent 5c98c6fb71
commit 4a62cc13be

View File

@ -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