summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2018-07-11 04:18:02 -0400
committermidipix <writeonce@midipix.org>2018-07-11 05:12:30 -0400
commit66a3c29002c85e373c1cedbde05b7512b9589dcf (patch)
treeb42bf928856108a1a2d4c49057cba4eeff012d23 /src
parenta797c957a5dae300c0439ed1cc072d95ab90e08d (diff)
downloadslibtool-66a3c29002c85e373c1cedbde05b7512b9589dcf.tar.bz2
slibtool-66a3c29002c85e373c1cedbde05b7512b9589dcf.tar.xz
slbt_split_argv(): use a compiler --target argument also as a tool argument.
Diffstat (limited to 'src')
-rw-r--r--src/driver/slbt_driver_ctx.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c
index 1ce3084..df26bf9 100644
--- a/src/driver/slbt_driver_ctx.c
+++ b/src/driver/slbt_driver_ctx.c
@@ -334,6 +334,17 @@ static int slbt_split_argv(
} else if (argv[i][1] == 'R') {
*targv++ = argv[i];
+ } else if (!(strncmp("-target=",&argv[i][1],8))) {
+ *cargv++ = argv[i];
+ *targv++ = argv[i];
+
+ } else if (!(strcmp("-target",&argv[i][1]))) {
+ *cargv++ = argv[i];
+ *targv++ = argv[i++];
+
+ *cargv++ = argv[i];
+ *targv++ = argv[i];
+
} else if (!(strcmp("bindir",&argv[i][1]))) {
*targv++ = argv[i++];
*targv++ = argv[i];