summaryrefslogtreecommitdiff
path: root/src/logic
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-03 19:46:57 -0400
committermidipix <writeonce@midipix.org>2016-04-04 18:04:52 -0400
commit93b62c7d9abbb324853cd0df1ff5aeda27e3b5aa (patch)
treeebb90d4c2f1ad8c87b060edfb4f182d6645f1302 /src/logic
parentb1f9773c9f2e22980e7835813e29c5866287336c (diff)
downloadslibtool-93b62c7d9abbb324853cd0df1ff5aeda27e3b5aa.tar.bz2
slibtool-93b62c7d9abbb324853cd0df1ff5aeda27e3b5aa.tar.xz
driver: added -no-undefined support.
Diffstat (limited to 'src/logic')
-rw-r--r--src/logic/slbt_exec_ctx.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/logic/slbt_exec_ctx.c b/src/logic/slbt_exec_ctx.c
index 5529c0e..141a621 100644
--- a/src/logic/slbt_exec_ctx.c
+++ b/src/logic/slbt_exec_ctx.c
@@ -220,6 +220,8 @@ int slbt_get_exec_ctx(
ictx->ctx.fpic = &ictx->ctx.argv[i++];
ictx->ctx.cass = &ictx->ctx.argv[i++];
+
+ ictx->ctx.noundef = &ictx->ctx.argv[i++];
ictx->ctx.lout[0] = &ictx->ctx.argv[i++];
ictx->ctx.lout[1] = &ictx->ctx.argv[i++];
ictx->ctx.sentinel= &ictx->ctx.argv[i++];
@@ -334,6 +336,7 @@ void slbt_reset_placeholders(struct slbt_exec_ctx * ectx)
*ectx->fpic = "-USLIBTOOL_PLACEHOLDER_FPIC";
*ectx->cass = "-USLIBTOOL_PLACEHOLDER_COMPILE_ASSEMBLE";
+ *ectx->noundef = "-USLIBTOOL_PLACEHOLDER_NO_UNDEFINED";
*ectx->lout[0] = "-USLIBTOOL_PLACEHOLDER_OUTPUT_SWITCH";
*ectx->lout[1] = "-USLIBTOOL_PLACEHOLDER_OUTPUT_FILE";
*ectx->sentinel= 0;