summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-07-11 05:31:46 -0400
committermidipix <writeonce@midipix.org>2018-07-11 06:05:58 -0400
commit0bfff4a80d596810a1798a3710a0e9ff96a9f925 (patch)
treee02a3fd1090dddf538591409ed5e90f3d2e2f6ef
parentae685472305e04409a92afdcc725826cc50bfdab (diff)
downloadslibtool-0bfff4a80d596810a1798a3710a0e9ff96a9f925.tar.bz2
slibtool-0bfff4a80d596810a1798a3710a0e9ff96a9f925.tar.xz
slbt_init_host_params(): further eliminate compiler -dumpmachine invocations.
-rw-r--r--src/driver/slbt_driver_ctx.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index eff7e55..6675adb 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -457,10 +457,13 @@ static int slbt_init_host_params(
else
base = cctx->cargv[0];
- fdumpmachine = (cctx->mode == SLBT_MODE_COMPILE)
+ fdumpmachine = (cctx->mode == SLBT_MODE_COMPILE)
|| (cctx->mode == SLBT_MODE_LINK)
|| (cctx->mode == SLBT_MODE_INFO);
+ fdumpmachine &= (!strcmp(base,"xgcc")
+ || !strcmp(base,"xg++"));
+
/* support the portbld <--> unknown synonym */
if (!(drvhost->machine = strdup(SLBT_MACHINE)))
return -1;