diff options
author | midipix <writeonce@midipix.org> | 2021-03-21 14:44:16 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-03-21 14:44:16 +0000 |
commit | 8b2e8d3b2f044c308b07198cc5abbb3f90596d4b (patch) | |
tree | 035a485fd8e1c4a94adf8472336e6ca5e21dc074 /src | |
parent | f5cf7729eb38f726401cacac5f1cf157d5e26749 (diff) | |
download | slibtool-8b2e8d3b2f044c308b07198cc5abbb3f90596d4b.tar.bz2 slibtool-8b2e8d3b2f044c308b07198cc5abbb3f90596d4b.tar.xz |
slbt_get_exec_ctx(): .def file name: added proper -release support.
Diffstat (limited to 'src')
-rw-r--r-- | src/logic/slbt_exec_ctx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/logic/slbt_exec_ctx.c b/src/logic/slbt_exec_ctx.c index d10d880..7b5267a 100644 --- a/src/logic/slbt_exec_ctx.c +++ b/src/logic/slbt_exec_ctx.c @@ -372,10 +372,12 @@ int slbt_get_exec_ctx( /* deffilename */ ictx->ctx.deffilename = ch; - ch += sprintf(ch,"%s%s%s%s.def", + ch += sprintf(ch,"%s%s%s%s%s%s.def", ictx->ctx.ldirname, dsoprefix, dctx->cctx->libname, + dctx->cctx->release ? "-" : "", + dctx->cctx->release ? dctx->cctx->release : "", dctx->cctx->settings.dsosuffix); ch++; |