diff options
author | midipix <writeonce@midipix.org> | 2016-11-05 10:18:56 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-05 10:18:56 -0400 |
commit | 17536286306d9ecf75d6a3310d057691209e2fde (patch) | |
tree | 5a6a52bfbf469d1ddd34669fb4648ab3fb4fae04 /src/logic | |
parent | 005b656e87db4839c177c971bc6b2541e76daec5 (diff) | |
download | slibtool-17536286306d9ecf75d6a3310d057691209e2fde.tar.bz2 slibtool-17536286306d9ecf75d6a3310d057691209e2fde.tar.xz |
link mode: respect -disable-static.
Diffstat (limited to 'src/logic')
-rw-r--r-- | src/logic/slbt_exec_link.c | 4 |
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); |