summaryrefslogtreecommitdiffhomepage
path: root/src/logic/slbt_exec_ctx.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2024-03-03 05:35:33 +0000
committermidipix <writeonce@midipix.org>2024-03-03 09:27:48 +0000
commit4af256bee433fadfacf2cb1e22dbe35c9e0a8fbf (patch)
treea5d5acddf8bff2c09638348f9d665806fe76702b /src/logic/slbt_exec_ctx.c
parentabb1bf44beb99a03a6197742fd0c50d48a644f38 (diff)
downloadslibtool-4af256bee433fadfacf2cb1e22dbe35c9e0a8fbf.tar.bz2
slibtool-4af256bee433fadfacf2cb1e22dbe35c9e0a8fbf.tar.xz
slbt_exec_link_create_library(): allow ar(1) driven invocations.
Diffstat (limited to 'src/logic/slbt_exec_ctx.c')
-rw-r--r--src/logic/slbt_exec_ctx.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/logic/slbt_exec_ctx.c b/src/logic/slbt_exec_ctx.c
index 583001d..7c5bd87 100644
--- a/src/logic/slbt_exec_ctx.c
+++ b/src/logic/slbt_exec_ctx.c
@@ -705,6 +705,15 @@ void slbt_ectx_reset_argvector(struct slbt_exec_ctx * ectx)
slbt_hidden void slbt_reset_placeholders(struct slbt_exec_ctx * ectx)
{
+ struct slbt_exec_ctx_impl * ictx;
+
+ ictx = slbt_get_exec_ictx(ectx);
+
+ if (ictx->lout[0]) {
+ ectx->lout[0] = ictx->lout[0];
+ ectx->lout[1] = ictx->lout[1];
+ }
+
*ectx->dpic = "-USLIBTOOL_PLACEHOLDER_DPIC";
*ectx->fpic = "-USLIBTOOL_PLACEHOLDER_FPIC";
*ectx->cass = "-USLIBTOOL_PLACEHOLDER_COMPILE_ASSEMBLE";