summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/slibtool/slibtool.h1
-rw-r--r--src/logic/slbt_exec_ctx.c15
2 files changed, 16 insertions, 0 deletions
diff --git a/include/slibtool/slibtool.h b/include/slibtool/slibtool.h
index 1052303..bf85763 100644
--- a/include/slibtool/slibtool.h
+++ b/include/slibtool/slibtool.h
@@ -189,6 +189,7 @@ slbt_api int slbt_get_exec_ctx (const struct slbt_driver_ctx *, struct slbt_ex
slbt_api void slbt_free_exec_ctx (struct slbt_exec_ctx *);
slbt_api void slbt_reset_arguments (struct slbt_exec_ctx *);
slbt_api void slbt_reset_placeholders (struct slbt_exec_ctx *);
+slbt_api void slbt_disable_placeholders (struct slbt_exec_ctx *);
slbt_api int slbt_exec_compile (const struct slbt_driver_ctx *, struct slbt_exec_ctx *);
slbt_api int slbt_exec_link (const struct slbt_driver_ctx *, struct slbt_exec_ctx *);
diff --git a/src/logic/slbt_exec_ctx.c b/src/logic/slbt_exec_ctx.c
index 620cde7..5f08526 100644
--- a/src/logic/slbt_exec_ctx.c
+++ b/src/logic/slbt_exec_ctx.c
@@ -370,3 +370,18 @@ void slbt_reset_placeholders(struct slbt_exec_ctx * ectx)
*ectx->lout[1] = "-USLIBTOOL_PLACEHOLDER_OUTPUT_FILE";
*ectx->sentinel= 0;
}
+
+void slbt_disable_placeholders(struct slbt_exec_ctx * ectx)
+{
+ *ectx->dpic = 0;
+ *ectx->fpic = 0;
+ *ectx->cass = 0;
+
+ *ectx->noundef = 0;
+ *ectx->soname = 0;
+ *ectx->lsoname = 0;
+
+ *ectx->lout[0] = 0;
+ *ectx->lout[1] = 0;
+ *ectx->sentinel= 0;
+}