summaryrefslogtreecommitdiffhomepage
path: root/src/driver/slbt_amain.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-01-01 15:04:47 +0000
committermidipix <writeonce@midipix.org>2024-01-22 03:49:50 +0000
commit11f3c72e2281a8ef511e2c0819f7042f343f4474 (patch)
tree8b64ab467fd2c3fdd190c932458f3f5d047451b8 /src/driver/slbt_amain.c
parent62634282d8511970f0ccdcc41249e7a947134a42 (diff)
downloadslibtool-11f3c72e2281a8ef511e2c0819f7042f343f4474.tar.bz2
slibtool-11f3c72e2281a8ef511e2c0819f7042f343f4474.tar.xz
ar mode: initial driver integration and skeleton implementation.
Diffstat (limited to 'src/driver/slbt_amain.c')
-rw-r--r--src/driver/slbt_amain.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/driver/slbt_amain.c b/src/driver/slbt_amain.c
index eff2b45..1cc1c07 100644
--- a/src/driver/slbt_amain.c
+++ b/src/driver/slbt_amain.c
@@ -79,6 +79,9 @@ static void slbt_perform_driver_actions(struct slbt_driver_ctx * dctx)
if (dctx->cctx->mode == SLBT_MODE_UNINSTALL)
slbt_exec_uninstall(dctx,0);
+
+ if (dctx->cctx->mode == SLBT_MODE_AR)
+ slbt_exec_ar(dctx,0);
}
static int slbt_exit(struct slbt_driver_ctx * dctx, int ret)
@@ -122,6 +125,10 @@ int slbt_main(char ** argv, char ** envp, const struct slbt_fd_ctx * fdctx)
else if (!(strcmp(dash,"static")))
flags = SLBT_DRIVER_FLAGS | SLBT_DRIVER_DISABLE_SHARED;
+ /* internal ar mode */
+ else if (!(strcmp(dash,"ar")))
+ flags |= SLBT_DRIVER_MODE_AR;
+
/* debug */
if (!(strcmp(program,"dlibtool")))
flags |= SLBT_DRIVER_DEBUG;