summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/patchelf.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/patchelf.cc b/src/patchelf.cc
index f05f75c..d5b5f72 100644
--- a/src/patchelf.cc
+++ b/src/patchelf.cc
@@ -1459,12 +1459,14 @@ void ElfFile<ElfFileParamNames>::modifyRPath(RPathOp op,
if (!rpath) {
debug("no RPATH to shrink\n");
return;
- }
+ ;}
newRPath = shrinkRPath(rpath, neededLibs, allowedRpathPrefixes);
break;
}
case rpAdd: {
- newRPath = std::string(rpath ? rpath : "") + ":" + newRPath;
+ auto temp = std::string(rpath ? rpath : "");
+ appendRPath(temp, newRPath);
+ newRPath = temp;
break;
}
case rpSet: { break; } /* new rpath was provied as input to this function */