summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-10 10:37:24 -0400
committermidipix <writeonce@midipix.org>2016-04-10 10:40:15 -0400
commit4f79849f8590961f701f4c9ea923f259fc06c0b9 (patch)
tree9461b0420b55ec883c45bbc3a5e960e3d130a776 /src
parent96566172dadc17dedafdc5c944fb1ab1cb39173b (diff)
downloadslibtool-4f79849f8590961f701f4c9ea923f259fc06c0b9.tar.bz2
slibtool-4f79849f8590961f701f4c9ea923f259fc06c0b9.tar.xz
driver: account for sub-directories when constructing the library name.
Diffstat (limited to 'src')
-rw-r--r--src/driver/slbt_driver_ctx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 6886b85..69611a4 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -508,7 +508,7 @@ static int slbt_init_link_params(struct slbt_driver_ctx_impl * ctx)
prefix = ctx->cctx.settings.arprefix;
if (!strncmp(prefix,base,strlen(prefix)))
- libname = ctx->cctx.output;
+ libname = base;
else {
if (ctx->cctx.drvflags & SLBT_DRIVER_VERBOSITY_ERRORS)
fprintf(stderr,
@@ -525,7 +525,7 @@ static int slbt_init_link_params(struct slbt_driver_ctx_impl * ctx)
prefix = ctx->cctx.settings.dsoprefix;
if (!strncmp(prefix,base,strlen(prefix)))
- libname = ctx->cctx.output;
+ libname = base;
else {
if (ctx->cctx.drvflags & SLBT_DRIVER_VERBOSITY_ERRORS)
fprintf(stderr,
@@ -542,7 +542,7 @@ static int slbt_init_link_params(struct slbt_driver_ctx_impl * ctx)
prefix = ctx->cctx.settings.dsoprefix;
if (!strncmp(prefix,base,strlen(prefix)))
- libname = ctx->cctx.output;
+ libname = base;
else {
if (ctx->cctx.drvflags & SLBT_DRIVER_VERBOSITY_ERRORS)
fprintf(stderr,