f9dfdb
driver: account for the combination of -module and a lib-prefixed .la wrapper.
@@ -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
|
-
|
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 {
|