aboutsummaryrefslogtreecommitdiff
path: root/src/relocation.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/relocation.c')
-rw-r--r--src/relocation.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/relocation.c b/src/relocation.c
index 2ef72eb..c235abe 100644
--- a/src/relocation.c
+++ b/src/relocation.c
@@ -387,6 +387,7 @@ void relocate_root(const char *destroot, const char *baseroot) {
getcwd(cwd, sizeof(cwd));
chdir(baseroot);
{
+ FSTree *libs = rpath_libraries_available(".");
// Rewrite binary prefixes
b_record = prefixes_read(SPM_META_PREFIX_BIN);
if (b_record) {
@@ -395,7 +396,7 @@ void relocate_root(const char *destroot, const char *baseroot) {
if (SPM_GLOBAL.verbose) {
printf("Relocate RPATH: %s\n", b_record[i]->path);
}
- rpath_autoset(b_record[i]->path);
+ rpath_autoset(b_record[i]->path, libs);
}
if (SPM_GLOBAL.verbose) {
printf("Relocate DATA : %s\n", b_record[i]->path);