summaryrefslogtreecommitdiffhomepage
path: root/src/logic
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-11 13:25:04 -0400
committermidipix <writeonce@midipix.org>2016-04-11 14:04:50 -0400
commita943fc79ea08792a9f1679183372bd4fccedcf2d (patch)
tree21a79deae240fd97991a432c15c1cc351c7aca73 /src/logic
parente0a0450b8764d54303d927e18aee1f038bcf66f7 (diff)
downloadslibtool-a943fc79ea08792a9f1679183372bd4fccedcf2d.tar.bz2
slibtool-a943fc79ea08792a9f1679183372bd4fccedcf2d.tar.xz
driver & execution context: added -module support.
Diffstat (limited to 'src/logic')
-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 5f08526..39fa26c 100644
--- a/src/logic/slbt_exec_ctx.c
+++ b/src/logic/slbt_exec_ctx.c
@@ -281,7 +281,9 @@ int slbt_get_exec_ctx(
ictx->ctx.lafilename = ch;
ch += sprintf(ch,"%s%s%s.la",
ictx->ctx.ldirname,
- dctx->cctx->settings.dsoprefix,
+ (dctx->cctx->drvflags & SLBT_DRIVER_MODULE)
+ ? ""
+ : dctx->cctx->settings.dsoprefix,
dctx->cctx->libname)
+ sizeof('\0');
@@ -290,7 +292,9 @@ int slbt_get_exec_ctx(
ictx->ctx.dsofilename = ch;
ch += sprintf(ch,"%s%s%s%s",
ictx->ctx.ldirname,
- dctx->cctx->settings.dsoprefix,
+ (dctx->cctx->drvflags & SLBT_DRIVER_MODULE)
+ ? ""
+ : dctx->cctx->settings.dsoprefix,
dctx->cctx->libname,
dctx->cctx->settings.dsosuffix)
+ sizeof('\0');