summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2025-06-16 17:51:16 +0000
committermidipix <writeonce@midipix.org>2025-06-16 17:51:16 +0000
commit6704d4790dfa6431cc6cbdbfd8b25bbb5996813f (patch)
treee5988308c6c9a1e6d8051c207de737f979d22ab6 /src
parent7dbb93fb71826953195824505d12d93780a4521a (diff)
downloadslibtool-6704d4790dfa6431cc6cbdbfd8b25bbb5996813f.tar.bz2
slibtool-6704d4790dfa6431cc6cbdbfd8b25bbb5996813f.tar.xz
slbt_init_host_params(): --mkvars=... code path: enable heuristics as needed.
Diffstat (limited to 'src')
-rw-r--r--src/driver/slbt_driver_ctx.c3
-rw-r--r--src/host/slbt_host_params.c7
-rw-r--r--src/internal/slibtool_driver_impl.h3
3 files changed, 9 insertions, 4 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 5bde077..1033c4b 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -1094,7 +1094,8 @@ int slbt_lib_get_driver_ctx(
cfgmeta_as,
cfgmeta_nm,
cfgmeta_ranlib,
- cfgmeta_dlltool))
+ cfgmeta_dlltool,
+ mkvars))
return slbt_lib_get_driver_ctx_fail(&ctx->ctx,0);
/* host tool arguments */
diff --git a/src/host/slbt_host_params.c b/src/host/slbt_host_params.c
index 8776507..e4e956d 100644
--- a/src/host/slbt_host_params.c
+++ b/src/host/slbt_host_params.c
@@ -100,7 +100,8 @@ slbt_hidden int slbt_init_host_params(
const char * cfgmeta_as,
const char * cfgmeta_nm,
const char * cfgmeta_ranlib,
- const char * cfgmeta_dlltool)
+ const char * cfgmeta_dlltool,
+ const char * mkvars)
{
int fdcwd;
int arprobe;
@@ -300,6 +301,8 @@ slbt_hidden int slbt_init_host_params(
arprobe = true;
} else if (cctx->mode == SLBT_MODE_INFO) {
arprobe = true;
+ } else if (mkvars) {
+ arprobe = true;
} else {
arprobe = false;
}
@@ -663,7 +666,7 @@ int slbt_host_set_althost(
&ictx->ctx.ahost,
&ictx->ctx.cctx.ahost,
&ictx->ctx.cctx.acfgmeta,
- 0,0,0,0,0,0)) {
+ 0,0,0,0,0,0,0)) {
slbt_free_host_params(&ictx->ctx.ahost);
return SLBT_CUSTOM_ERROR(ctx,SLBT_ERR_HOST_INIT);
}
diff --git a/src/internal/slibtool_driver_impl.h b/src/internal/slibtool_driver_impl.h
index 6d8a027..9f272d4 100644
--- a/src/internal/slibtool_driver_impl.h
+++ b/src/internal/slibtool_driver_impl.h
@@ -348,7 +348,8 @@ int slbt_init_host_params(
const char * cfgmeta_as,
const char * cfgmeta_nm,
const char * cfgmeta_ranlib,
- const char * cfgmeta_dlltool);
+ const char * cfgmeta_dlltool,
+ const char * mkvars);
void slbt_free_host_params(struct slbt_host_strs * host);