Browse Source

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.
rdb 5 years ago
parent
commit
4a62cc13be
1 changed files with 1 additions and 1 deletions
  1. 1 1
      makepanda/makewheel.py

+ 1 - 1
makepanda/makewheel.py

@@ -455,7 +455,7 @@ class WheelFile(object):
                         self.consider_add_dependency(target_dep, dep)
                         self.consider_add_dependency(target_dep, dep)
 
 
                 subprocess.call(["strip", "-s", temp.name])
                 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
             source_path = temp.name