summaryrefslogtreecommitdiff
path: root/tccelf.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccelf.c')
-rw-r--r--tccelf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tccelf.c b/tccelf.c
index 86d0f80..7e132a1 100644
--- a/tccelf.c
+++ b/tccelf.c
@@ -3488,7 +3488,7 @@ ST_FUNC int tcc_load_dll(TCCState *s1, int fd, const char *filename, int level)
if (dt->d_tag == DT_SONAME) {
soname = dynstr + dt->d_un.d_val;
} else if (dt->d_tag == DT_RPATH) {
- s1->rpath = tcc_strdup(dynstr + dt->d_un.d_val);
+ tcc_add_library_path(s1, dynstr + dt->d_un.d_val);
}
}