summaryrefslogtreecommitdiff
path: root/src/logic/slbt_exec_ctx.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-05-11 01:51:04 +0000
committermidipix <writeonce@midipix.org>2021-05-11 01:51:04 +0000
commitf020833322bbb1e3080d6ad1792e2040454a224e (patch)
treea8e8a32ce0954aa60ae333807f1945cb162d3f3b /src/logic/slbt_exec_ctx.c
parent7b8d497fc63eb0475ab2969bcc119d6af6491f06 (diff)
downloadslibtool-f020833322bbb1e3080d6ad1792e2040454a224e.tar.bz2
slibtool-f020833322bbb1e3080d6ad1792e2040454a224e.tar.xz
link mode: PE targets: -release: fix names used for and in import libraries.
Diffstat (limited to 'src/logic/slbt_exec_ctx.c')
-rw-r--r--src/logic/slbt_exec_ctx.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/logic/slbt_exec_ctx.c b/src/logic/slbt_exec_ctx.c
index 82961b6..02682cd 100644
--- a/src/logic/slbt_exec_ctx.c
+++ b/src/logic/slbt_exec_ctx.c
@@ -404,20 +404,24 @@ int slbt_get_exec_ctx(
/* primary implib file name */
ictx->ctx.pimpfilename = ch;
- ch += sprintf(ch,"%s%s%s.%d%s",
+ ch += sprintf(ch,"%s%s%s%s%s.%d%s",
ictx->ctx.ldirname,
impprefix,
dctx->cctx->libname,
+ dctx->cctx->release ? "-" : "",
+ dctx->cctx->release ? dctx->cctx->release : "",
dctx->cctx->verinfo.major,
dctx->cctx->settings.impsuffix);
ch++;
/* versioned implib file name */
ictx->ctx.vimpfilename = ch;
- ch += sprintf(ch,"%s%s%s.%d.%d.%d%s",
+ ch += sprintf(ch,"%s%s%s%s%s.%d.%d.%d%s",
ictx->ctx.ldirname,
impprefix,
dctx->cctx->libname,
+ dctx->cctx->release ? "-" : "",
+ dctx->cctx->release ? dctx->cctx->release : "",
dctx->cctx->verinfo.major,
dctx->cctx->verinfo.minor,
dctx->cctx->verinfo.revision,