From 4f79849f8590961f701f4c9ea923f259fc06c0b9 Mon Sep 17 00:00:00 2001 From: midipix Date: Apr 10 2016 14:40:15 +0000 Subject: driver: account for sub-directories when constructing the library name. --- 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,