summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-04-05 07:53:56 +0000
committermidipix <writeonce@midipix.org>2021-04-05 07:53:56 +0000
commitbddb656ddd72497de22a419ff350facb5022132e (patch)
tree13372d23561bf73798d76dccc5b330a22fe95b07 /src
parentbdfc6244aea6624126186fa92bd23dc2aaf580e8 (diff)
downloadslibtool-bddb656ddd72497de22a419ff350facb5022132e.tar.bz2
slibtool-bddb656ddd72497de22a419ff350facb5022132e.tar.xz
link mode: shared: use .deps of a static-only .la input argument as needed.
Diffstat (limited to 'src')
-rw-r--r--src/logic/slbt_exec_link.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index 09a3928..f47f01c 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -1024,6 +1024,8 @@ static int slbt_exec_link_create_dep_file(
return SLBT_BUFFER_ERROR(dctx);
}
+ mapinfo = 0;
+
mark = strrchr(mark,'.');
size = sizeof(depfile) - (mark - depfile);
@@ -1045,7 +1047,9 @@ static int slbt_exec_link_create_dep_file(
close(deps);
return SLBT_SYSTEM_ERROR(dctx,0);
}
- } else {
+ }
+
+ if (!mapinfo) {
slen = snprintf(mark,size,
".a.slibtool.deps");