diff options
author | midipix <writeonce@midipix.org> | 2016-11-05 10:18:20 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-11-05 10:18:20 -0400 |
commit | 005b656e87db4839c177c971bc6b2541e76daec5 (patch) | |
tree | c9baf2b3b2122015316bd3e7f06c5a867bcec382 /src/driver | |
parent | 210852cf8a3ff68e5963a4bf76a13b10e806ae7a (diff) | |
download | slibtool-005b656e87db4839c177c971bc6b2541e76daec5.tar.bz2 slibtool-005b656e87db4839c177c971bc6b2541e76daec5.tar.xz |
compile mode: respect -disable-static and -disable-shared.
Diffstat (limited to 'src/driver')
-rw-r--r-- | src/driver/slbt_driver_ctx.c | 8 |
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); |