summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-02-26 23:23:33 -0500
committermidipix <writeonce@midipix.org>2018-02-26 23:23:33 -0500
commit34a96e7d23ab616857230fdfc642c5560cfd079d (patch)
treefe65a2a090cceebfeed109eb16660b69366d1220
parentd7eb710ed9096680e9783cd43516e0f49163a546 (diff)
downloadslibtool-34a96e7d23ab616857230fdfc642c5560cfd079d.tar.bz2
slibtool-34a96e7d23ab616857230fdfc642c5560cfd079d.tar.xz
driver: allow flavor-based use of native tools (ar,ranlib,etc.)
-rw-r--r--src/driver/slbt_driver_ctx.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index ed267cd..1993414 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -508,6 +508,11 @@ static int slbt_init_host_params(
host->flavor = "default";
cfgmeta->flavor = "fallback, unverified";
}
+
+ if (fcompiler && !fnative)
+ if ((mark = strstr(drvhost->machine,host->flavor)))
+ if (mark > drvhost->machine)
+ fnative = (*--mark == '-');
}
/* toollen */