summaryrefslogtreecommitdiff
path: root/src/logic
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-22 21:51:42 -0400
committermidipix <writeonce@midipix.org>2016-04-23 09:25:25 -0400
commitf782a15878f72d95ddf5f8dfd0c56e185442fcc8 (patch)
tree695d6e9520f7aea2244848c7d6b2c7f50a32c46f /src/logic
parent2da3b0fad5a2432bb259131cf72a48eb14f8ec9c (diff)
downloadslibtool-f782a15878f72d95ddf5f8dfd0c56e185442fcc8.tar.bz2
slibtool-f782a15878f72d95ddf5f8dfd0c56e185442fcc8.tar.xz
link mode: respect -disable-shared.
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/slbt_exec_link.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index 267e292..31c4501 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -904,6 +904,9 @@ int slbt_exec_link(
if (dctx->cctx->drvflags & SLBT_DRIVER_ALL_STATIC) {
fstaticonly = true;
fpic = false;
+ } else if (dctx->cctx->drvflags & SLBT_DRIVER_DISABLE_SHARED) {
+ fstaticonly = true;
+ fpic = false;
} else if (dctx->cctx->drvflags & SLBT_DRIVER_SHARED) {
fstaticonly = false;
fpic = true;