From f9dfdb09508d4b576245c6a41a216507af91ab49 Mon Sep 17 00:00:00 2001 From: midipix Date: Apr 12 2016 00:36:05 +0000 Subject: driver: account for the combination of -module and a lib-prefixed .la wrapper. --- 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 {