From b4058c47a4dbd27e8012d13697aaf30c447effbd Mon Sep 17 00:00:00 2001 From: midipix Date: Wed, 14 Feb 2024 01:46:59 +0000 Subject: driver: rlibtool mode: also derive AS from the located libtool script. --- src/driver/slbt_host_params.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/driver/slbt_host_params.c') diff --git a/src/driver/slbt_host_params.c b/src/driver/slbt_host_params.c index 6414ec1..58e0612 100644 --- a/src/driver/slbt_host_params.c +++ b/src/driver/slbt_host_params.c @@ -137,6 +137,7 @@ int slbt_init_host_params( struct slbt_host_params * host, struct slbt_host_params * cfgmeta, const char * cfgmeta_ar, + const char * cfgmeta_as, const char * cfgmeta_ranlib, const char * cfgmeta_dlltool) { @@ -371,7 +372,7 @@ int slbt_init_host_params( /* as */ if (host->as) - cfgmeta->as = cfgexplicit; + cfgmeta->as = cfgmeta_as ? cfgmeta_as : cfgexplicit; else { if (!(drvhost->as = calloc(1,toollen))) return -1; @@ -644,7 +645,7 @@ int slbt_set_alternate_host( &ictx->ctx.ahost, &ictx->ctx.cctx.ahost, &ictx->ctx.cctx.acfgmeta, - 0,0,0)) { + 0,0,0,0)) { slbt_free_host_params(&ictx->ctx.ahost); return SLBT_CUSTOM_ERROR(ctx,SLBT_ERR_HOST_INIT); } -- cgit v1.2.3