summaryrefslogtreecommitdiffhomepage
path: root/src/logic/slbt_exec_link.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-11-05 10:18:56 -0400
committermidipix <writeonce@midipix.org>2016-11-05 10:18:56 -0400
commit17536286306d9ecf75d6a3310d057691209e2fde (patch)
tree5a6a52bfbf469d1ddd34669fb4648ab3fb4fae04 /src/logic/slbt_exec_link.c
parent005b656e87db4839c177c971bc6b2541e76daec5 (diff)
downloadslibtool-17536286306d9ecf75d6a3310d057691209e2fde.tar.bz2
slibtool-17536286306d9ecf75d6a3310d057691209e2fde.tar.xz
link mode: respect -disable-static.
Diffstat (limited to 'src/logic/slbt_exec_link.c')
-rw-r--r--src/logic/slbt_exec_link.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/logic/slbt_exec_link.c b/src/logic/slbt_exec_link.c
index 6e3268d..bce8147 100644
--- a/src/logic/slbt_exec_link.c
+++ b/src/logic/slbt_exec_link.c
@@ -788,6 +788,10 @@ static int slbt_exec_link_create_archive(
char arfile [PATH_MAX];
char arlink [PATH_MAX];
+ /* -disable-static? */
+ if (dctx->cctx->drvflags & SLBT_DRIVER_DISABLE_STATIC)
+ return 0;
+
/* initial state */
slbt_reset_arguments(ectx);