diff options
author | midipix <writeonce@midipix.org> | 2016-04-10 10:37:24 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-10 10:40:15 -0400 |
commit | 4f79849f8590961f701f4c9ea923f259fc06c0b9 (patch) | |
tree | 9461b0420b55ec883c45bbc3a5e960e3d130a776 | |
parent | 96566172dadc17dedafdc5c944fb1ab1cb39173b (diff) | |
download | slibtool-4f79849f8590961f701f4c9ea923f259fc06c0b9.tar.bz2 slibtool-4f79849f8590961f701f4c9ea923f259fc06c0b9.tar.xz |
driver: account for sub-directories when constructing the library name.
-rw-r--r-- | src/driver/slbt_driver_ctx.c | 6 |
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, |