diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/host/slbt_host_params.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/host/slbt_host_params.c b/src/host/slbt_host_params.c index f9ef88c..39272ef 100644 --- a/src/host/slbt_host_params.c +++ b/src/host/slbt_host_params.c @@ -345,6 +345,18 @@ slbt_hidden int slbt_init_host_params( cfgmeta->as = cfghost; } + if (host->ranlib && (mark = strrchr(host->ranlib,'/'))) { + if (strcmp(++mark,"ranlib")) + if ((mark = strrchr(mark,'-'))) + if (strcmp(++mark,"ranlib")) + mark = 0; + + if (mark) { + strcpy(drvhost->as,host->ranlib); + strcpy(&drvhost->as[mark-host->ranlib],"as"); + } + } + host->as = drvhost->as; } |