From f9dfdb09508d4b576245c6a41a216507af91ab49 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 11 Apr 2016 20:36:05 -0400 Subject: driver: account for the combination of -module and a lib-prefixed .la wrapper. --- src/driver/slbt_driver_ctx.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/driver') 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 { -- cgit v1.2.3