diff options
author | midipix <writeonce@midipix.org> | 2016-03-19 15:02:58 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-03-19 15:02:58 -0400 |
commit | 666296cf8f36712072a93ee91ff998a5a53f1f27 (patch) | |
tree | d30ab60cf395c62192c67333d55d0449e7e1c60c /src/driver/slbt_driver_ctx.c | |
parent | 9c664df6999ec7a3a4bf3bc544605a40701a487d (diff) | |
download | slibtool-666296cf8f36712072a93ee91ff998a5a53f1f27.tar.bz2 slibtool-666296cf8f36712072a93ee91ff998a5a53f1f27.tar.xz |
driver: slbt_split_argv(): fix handling of options which take an argument.
Diffstat (limited to 'src/driver/slbt_driver_ctx.c')
-rw-r--r-- | src/driver/slbt_driver_ctx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/driver/slbt_driver_ctx.c b/src/driver/slbt_driver_ctx.c index e4d2eda..98457ba 100644 --- a/src/driver/slbt_driver_ctx.c +++ b/src/driver/slbt_driver_ctx.c @@ -211,15 +211,15 @@ static int slbt_split_argv( *cargv++ = argv[++i]; else if (!(strncmp("-target=",&argv[i][1],strlen("-target=")))) - *targv++ = argv[i++]; + *targv++ = argv[i]; else if (!(strcmp("-target",&argv[i][1]))) { *targv++ = argv[i++]; - *targv++ = argv[i++]; + *targv++ = argv[i]; } else if (!(strcmp("rpath",&argv[i][1]))) { *targv++ = argv[i++]; - *targv++ = argv[i++]; + *targv++ = argv[i]; } else { for (option=options; option->long_name; option++) if (!(strcmp(option->long_name,&argv[i][1]))) |