From 9582b2461a173645b0bb2c9ddf7dc8d58cac2042 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 3 Apr 2021 22:48:18 +0000 Subject: driver: --tag=disable-shared now overrides a heuristics-based -disable-static. --- src/driver/slbt_driver_ctx.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index 7ce2c92..1d9ea5f 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -1712,6 +1712,9 @@ int slbt_get_driver_ctx( if (slbt_get_lconf_flags(&ctx->ctx,lconf,&lflags) < 0) return slbt_get_driver_ctx_fail(&ctx->ctx,0); + if (cmdnoshared) + lflags &= ~(uint64_t)SLBT_DRIVER_DISABLE_STATIC; + cctx.drvflags |= lflags; cctx.drvflags |= SLBT_DRIVER_SHARED; cctx.drvflags |= SLBT_DRIVER_STATIC; -- cgit v1.2.3