From 005b656e87db4839c177c971bc6b2541e76daec5 Mon Sep 17 00:00:00 2001 From: midipix Date: Sat, 5 Nov 2016 10:18:20 -0400 Subject: compile mode: respect -disable-static and -disable-shared. --- src/driver/slbt_driver_ctx.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index 81a34ac..562ab4d 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -1048,6 +1048,14 @@ int slbt_get_driver_ctx( } } + /* -disable-static? */ + if (cctx.drvflags & SLBT_DRIVER_DISABLE_STATIC) + cctx.drvflags &= ~(uint64_t)SLBT_DRIVER_STATIC; + + /* -disable-shared? */ + if (cctx.drvflags & SLBT_DRIVER_DISABLE_SHARED) + cctx.drvflags &= ~(uint64_t)SLBT_DRIVER_SHARED; + /* debug: raw argument vector */ if (cctx.drvflags & SLBT_DRIVER_DEBUG) slbt_output_raw_vector(argv,envp); -- cgit v1.2.3