diff options
author | midipix <writeonce@midipix.org> | 2021-04-05 07:53:56 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-04-05 07:53:56 +0000 |
commit | bddb656ddd72497de22a419ff350facb5022132e (patch) | |
tree | 13372d23561bf73798d76dccc5b330a22fe95b07 /src/logic | |
parent | bdfc6244aea6624126186fa92bd23dc2aaf580e8 (diff) | |
download | slibtool-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/logic')
-rw-r--r-- | src/logic/slbt_exec_link.c | 6 |
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"); |