From 4f79849f8590961f701f4c9ea923f259fc06c0b9 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 10 Apr 2016 10:37:24 -0400 Subject: driver: account for sub-directories when constructing the library name. --- src/driver/slbt_driver_ctx.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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, -- cgit v1.2.3