diff options
author | midipix <writeonce@midipix.org> | 2016-04-11 20:36:05 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-04-11 20:36:05 -0400 |
commit | f9dfdb09508d4b576245c6a41a216507af91ab49 (patch) | |
tree | e5b8321ef3297c5166d54465774cb5ca3be79dff /src | |
parent | b3c21a592bb4a4ea6e9baf7d0c33ca05f14de368 (diff) | |
download | slibtool-f9dfdb09508d4b576245c6a41a216507af91ab49.tar.bz2 slibtool-f9dfdb09508d4b576245c6a41a216507af91ab49.tar.xz |
driver: account for the combination of -module and a lib-prefixed .la wrapper.
Diffstat (limited to 'src')
-rw-r--r-- | src/driver/slbt_driver_ctx.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index 47e4f7d..7d0b91f 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -545,9 +545,10 @@ static int slbt_init_link_params(struct slbt_driver_ctx_impl * ctx) else if (!strcmp(dot,".la")) { prefix = ctx->cctx.settings.dsoprefix; - if (!strncmp(prefix,base,strlen(prefix))) + if (!strncmp(prefix,base,strlen(prefix))) { libname = base; - else if (ctx->cctx.drvflags & SLBT_DRIVER_MODULE) { + fmodule = !!(ctx->cctx.drvflags & SLBT_DRIVER_MODULE); + } else if (ctx->cctx.drvflags & SLBT_DRIVER_MODULE) { libname = base; fmodule = true; } else { |