From c9788a274260102616259a88e8930f6da2ab6514 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 3 Apr 2021 23:02:30 +0000 Subject: driver: a heuristics-based -disable-shared now overrides --tag=disable-static. --- src/driver/slbt_driver_ctx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index 1d9ea5f..be70ad5 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -1715,6 +1715,10 @@ int slbt_get_driver_ctx( if (cmdnoshared) lflags &= ~(uint64_t)SLBT_DRIVER_DISABLE_STATIC; + if (cmdnostatic) + if (lflags & SLBT_DRIVER_DISABLE_SHARED) + cctx.drvflags &= ~(uint64_t)SLBT_DRIVER_DISABLE_STATIC; + cctx.drvflags |= lflags; cctx.drvflags |= SLBT_DRIVER_SHARED; cctx.drvflags |= SLBT_DRIVER_STATIC; -- cgit v1.2.3