From 4af256bee433fadfacf2cb1e22dbe35c9e0a8fbf Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 3 Mar 2024 05:35:33 +0000 Subject: slbt_exec_link_create_library(): allow ar(1) driven invocations. --- src/logic/linkcmd/slbt_linkcmd_dsolib.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/logic/linkcmd') diff --git a/src/logic/linkcmd/slbt_linkcmd_dsolib.c b/src/logic/linkcmd/slbt_linkcmd_dsolib.c index 4d611a0..dd5bf64 100644 --- a/src/logic/linkcmd/slbt_linkcmd_dsolib.c +++ b/src/logic/linkcmd/slbt_linkcmd_dsolib.c @@ -60,7 +60,8 @@ slbt_hidden int slbt_exec_link_create_library( struct slbt_exec_ctx * ectx, const char * dsobasename, const char * dsofilename, - const char * relfilename) + const char * relfilename, + bool fardlopen) { int fdcwd; char ** parg; @@ -273,6 +274,7 @@ slbt_hidden int slbt_exec_link_create_library( return SLBT_BUFFER_ERROR(dctx); } + /* output marks */ *ectx->lout[0] = "-o"; *ectx->lout[1] = output; @@ -307,6 +309,10 @@ slbt_hidden int slbt_exec_link_create_library( if (slbt_exec_link_finalize_argument_vector(dctx,ectx)) return SLBT_NESTED_ERROR(dctx); + /* all done? */ + if (fardlopen) + return 0; + /* step output */ if (!(dctx->cctx->drvflags & SLBT_DRIVER_SILENT)) if (slbt_output_link(ectx)) -- cgit v1.2.3