summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-09-26 17:09:49 -0400
committermidipix <writeonce@midipix.org>2016-09-26 17:09:49 -0400
commitaa2f591bad2cee5c7565212780c8683bd96ee292 (patch)
tree9e643ea3f53037dc8991b5d1edfb14ed9942da2f /src
parentf74b92cf929b833723ec2e6471205ad0cf431e1a (diff)
downloadslibtool-aa2f591bad2cee5c7565212780c8683bd96ee292.tar.bz2
slibtool-aa2f591bad2cee5c7565212780c8683bd96ee292.tar.xz
link mode: take a strightforward approach towards depsmeta->infolen.
Diffstat (limited to 'src')
-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);
}