summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/logic/slbt_exec_link.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index 7e26fbc..3c72f6d 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -135,15 +135,12 @@ static int slbt_get_deps_meta(
: 0;
if ((base = strrchr(libfilename,'/')))
- libexlen = base - libfilename + 2;
+ libexlen = strlen(depfile) + base - libfilename + 2;
else
- libexlen = 2;
+ libexlen = strlen(depfile) + 2;
for (; deplib; ) {
- if ((deplib[0] == '-') && (deplib[1] == 'L'))
- if (deplib[2] != '/')
- depsmeta->infolen += libexlen;
-
+ depsmeta->infolen += libexlen;
depsmeta->depscnt++;
deplib = fgets(deplibs,st.st_size+1,fdeps);
}