summaryrefslogtreecommitdiffhomepage
path: root/src/driver/slbt_driver_ctx.c
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-04-23 23:13:01 -0400
committermidipix <writeonce@midipix.org>2016-04-23 23:13:01 -0400
commitc7857f2f613e52773ca5c1fea5a4709fcdf90f86 (patch)
treef0ac22d213b5615db8f1c47fbe4ea8acca0b66e9 /src/driver/slbt_driver_ctx.c
parent70c446d3551afa585977e4bf040b6cbef450597f (diff)
downloadslibtool-c7857f2f613e52773ca5c1fea5a4709fcdf90f86.tar.bz2
slibtool-c7857f2f613e52773ca5c1fea5a4709fcdf90f86.tar.xz
driver: slbt_init_host_params(): fix annotation derived from -dumpmachine.
Diffstat (limited to 'src/driver/slbt_driver_ctx.c')
-rw-r--r--src/driver/slbt_driver_ctx.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index ed9639a..beb5122 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -32,7 +32,8 @@ static const char cfgexplicit[] = "command-line argument";
static const char cfghost[] = "derived from <host>";
static const char cfgtarget[] = "derived from <target>";
static const char cfgcompiler[] = "derived from <compiler>";
-static const char cfgmachine[] = "native (derived from -dumpmachine)";
+static const char cfgnmachine[] = "native (derived from -dumpmachine)";
+static const char cfgxmachine[] = "foreign (derived from -dumpmachine)";
static const char cfgnative[] = "native";
struct slbt_split_vector {
@@ -338,12 +339,12 @@ static int slbt_init_host_params(
return -1;
host->host = drvhost->host;
- cfgmeta->host = cfgmachine;
fcompiler = true;
fnative = (!(strcmp(host->host,SLBT_MACHINE)));
+ cfgmeta->host = fnative ? cfgnmachine : cfgxmachine;
} else {
host->host = SLBT_MACHINE;
- cfgmeta->host = cfgmachine;
+ cfgmeta->host = cfgnmachine;
fnative = true;
}
@@ -362,7 +363,7 @@ static int slbt_init_host_params(
cfgmeta->flavor = cfgcompiler;
} else {
machine = SLBT_MACHINE;
- cfgmeta->flavor = cfgmachine;
+ cfgmeta->flavor = cfgnmachine;
}
dash = strrchr(machine,'-');