diff options
author | midipix <writeonce@midipix.org> | 2024-02-13 16:22:20 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-02-13 16:22:20 +0000 |
commit | fc8ee9c0c22a831f03d35885e14ac72ddc91a04c (patch) | |
tree | 0d4054263addb364ddf86309d46d5378237eca50 /src/driver/slbt_host_params.c | |
parent | c1f21665c7010c70b87f79e1b81dc7f2564f26c9 (diff) | |
download | slibtool-fc8ee9c0c22a831f03d35885e14ac72ddc91a04c.tar.bz2 slibtool-fc8ee9c0c22a831f03d35885e14ac72ddc91a04c.tar.xz |
driver: rlibtool mode: also derive DLLTOOL from the located libtool script.
Diffstat (limited to 'src/driver/slbt_host_params.c')
-rw-r--r-- | src/driver/slbt_host_params.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/driver/slbt_host_params.c b/src/driver/slbt_host_params.c index 5811e02..f63f9b3 100644 --- a/src/driver/slbt_host_params.c +++ b/src/driver/slbt_host_params.c @@ -137,7 +137,8 @@ int slbt_init_host_params( struct slbt_host_params * host, struct slbt_host_params * cfgmeta, const char * cfgmeta_ar, - const char * cfgmeta_ranlib) + const char * cfgmeta_ranlib, + const char * cfgmeta_dlltool) { int fdcwd; int arprobe; @@ -413,7 +414,7 @@ int slbt_init_host_params( /* dlltool */ if (host->dlltool) - cfgmeta->dlltool = cfgexplicit; + cfgmeta->dlltool = cfgmeta_dlltool ? cfgmeta_dlltool : cfgexplicit; else if (strcmp(host->flavor,"cygwin") && strcmp(host->flavor,"midipix") @@ -622,7 +623,7 @@ int slbt_set_alternate_host( &ictx->ctx.ahost, &ictx->ctx.cctx.ahost, &ictx->ctx.cctx.acfgmeta, - 0,0)) { + 0,0,0)) { slbt_free_host_params(&ictx->ctx.ahost); return SLBT_CUSTOM_ERROR(ctx,SLBT_ERR_HOST_INIT); } |