firasuke / cross / slibtool

Forked from cross/slibtool 6 months ago
Clone

f9dfdb driver: account for the combination of -module and a lib-prefixed .la wrapper.

Authored and Committed by midipix 8 years ago
    driver: account for the combination of -module and a lib-prefixed .la wrapper.
    
        
file modified
+3 -2
src/driver/slbt_driver_ctx.c CHANGED
@@ -545,9 +545,10 @@ static int slbt_init_link_params(struct slbt_driver_ctx_impl * ctx)
545
545
else if (!strcmp(dot,".la")) {
546
546
prefix = ctx->cctx.settings.dsoprefix;
547
547
548
- if (!strncmp(prefix,base,strlen(prefix)))
548
+ if (!strncmp(prefix,base,strlen(prefix))) {
549
549
libname = base;
550
- else if (ctx->cctx.drvflags & SLBT_DRIVER_MODULE) {
550
+ fmodule = !!(ctx->cctx.drvflags & SLBT_DRIVER_MODULE);
551
+ } else if (ctx->cctx.drvflags & SLBT_DRIVER_MODULE) {
551
552
libname = base;
552
553
fmodule = true;
553
554
} else {