summaryrefslogtreecommitdiff
path: root/src/driver
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-23 16:46:24 +0000
committermidipix <writeonce@midipix.org>2024-03-23 22:08:37 +0000
commitaf48d3eca38ff4116eea71b805311ce9ed4cf0ad (patch)
tree4227be2d254022674f1b8ca01233f6b6c9c286fb /src/driver
parentbbc13d492947ef58bf7901e42e1fbed0a5ac1eda (diff)
downloadslibtool-af48d3eca38ff4116eea71b805311ce9ed4cf0ad.tar.bz2
slibtool-af48d3eca38ff4116eea71b805311ce9ed4cf0ad.tar.xz
slibtoolize: driver: added support for --copy, --force, and --install.
Diffstat (limited to 'src/driver')
-rw-r--r--src/driver/slbt_driver_ctx.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 956c435..85c75d2 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -23,6 +23,7 @@
#include "slibtool_errinfo_impl.h"
#include "slibtool_lconf_impl.h"
#include "slibtool_txtline_impl.h"
+#include "slibtool_stoolie_impl.h"
#include "slibtool_ar_impl.h"
#include "argv/argv.h"
@@ -416,10 +417,15 @@ int slbt_lib_get_driver_ctx(
const char * cfgmeta_ranlib;
const char * cfgmeta_dlltool;
- if (flags & SLBT_DRIVER_MODE_AR)
+ if (flags & SLBT_DRIVER_MODE_AR) {
argv_optv_init(slbt_ar_options,optv);
- else
+
+ } else if (flags & SLBT_DRIVER_MODE_STOOLIE) {
+ argv_optv_init(slbt_stoolie_options,optv);
+
+ } else {
argv_optv_init(slbt_default_options,optv);
+ }
if (!fdctx)
fdctx = &slbt_default_fdctx;