diff options
author | midipix <writeonce@midipix.org> | 2024-02-14 01:46:59 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-02-14 01:57:27 +0000 |
commit | b4058c47a4dbd27e8012d13697aaf30c447effbd (patch) | |
tree | c6956fc05c9f4b1024d50c59b91e48501b134a2c /src/driver/slbt_host_params.c | |
parent | 6bc1706e77c607947ac30f96ec0bce3e056b3026 (diff) | |
download | slibtool-b4058c47a4dbd27e8012d13697aaf30c447effbd.tar.bz2 slibtool-b4058c47a4dbd27e8012d13697aaf30c447effbd.tar.xz |
driver: rlibtool mode: also derive AS from the located libtool script.
Diffstat (limited to 'src/driver/slbt_host_params.c')
-rw-r--r-- | src/driver/slbt_host_params.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); } |