Package: patchelf
Version: 0.9
DT_RUNPATH won't be converted to DT_RPATH using --force-rpath unless the
attached patch is used.
Otherwise the option --force-rpath won't work.
--- a/src/patchelf.cc
+++ b/src/patchelf.cc
@@ -1176,8 +1176,10 @@
dynRPath = 0;
}
- if (forceRPath && dynRPath && dynRunPath) { /* convert DT_RUNPATH to DT_RPATH */
- dynRunPath->d_tag = DT_IGNORE;
+ if (forceRPath && !dynRPath && dynRunPath) { /* convert DT_RUNPATH to DT_RPATH */
+ dynRunPath->d_tag = DT_RPATH;
+ dynRPath = dynRunPath;
+ dynRunPath = 0;
}
if (newRPath.size() <= rpathSize) {