summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-05 10:18:20 -0400
committermidipix <writeonce@midipix.org>2016-11-05 10:18:20 -0400
commit005b656e87db4839c177c971bc6b2541e76daec5 (patch)
treec9baf2b3b2122015316bd3e7f06c5a867bcec382
parent210852cf8a3ff68e5963a4bf76a13b10e806ae7a (diff)
downloadslibtool-005b656e87db4839c177c971bc6b2541e76daec5.tar.bz2
slibtool-005b656e87db4839c177c971bc6b2541e76daec5.tar.xz
compile mode: respect -disable-static and -disable-shared.
-rw-r--r--src/driver/slbt_driver_ctx.c8
1 files changed, 8 insertions, 0 deletions
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);