diff options
author | Peng Fan <Peng.Fan@freescale.com> | 2014-08-09 20:32:50 +0800 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2014-09-01 09:59:01 +1000 |
commit | e5165d2d0a02443f82198ec00459bfbc4c150709 (patch) | |
tree | 6c27ba6c118a57b735a25e41affe71c0c891e324 /linkers | |
parent | rtms-tld: Refactor the code to match a better configuration format. (diff) | |
download | rtems-tools-e5165d2d0a02443f82198ec00459bfbc4c150709.tar.bz2 |
Fix getopt_long usage
When passing shorhand options, getopt_long sometimes does not handle
them correctly.
Signed-off-by: Peng Fan <Peng.Fan@freescale.com>
Diffstat (limited to 'linkers')
-rw-r--r-- | linkers/rtems-ld.cpp | 2 | ||||
-rw-r--r-- | linkers/rtems-ra.cpp | 2 | ||||
-rw-r--r-- | linkers/rtems-rapper.cpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/linkers/rtems-ld.cpp b/linkers/rtems-ld.cpp index 944afc3..7eabbfe 100644 --- a/linkers/rtems-ld.cpp +++ b/linkers/rtems-ld.cpp @@ -199,7 +199,7 @@ main (int argc, char* argv[]) while (true) { - int opt = ::getopt_long (argc, argv, "hvwVMnb:E:o:O:L:l:a:c:e:d:u:C:W:R:P", rld_opts, NULL); + int opt = ::getopt_long (argc, argv, "hvwVMnsSb:E:o:O:L:l:a:c:e:d:u:C:W:R:P:", rld_opts, NULL); if (opt < 0) break; diff --git a/linkers/rtems-ra.cpp b/linkers/rtems-ra.cpp index 0900ccc..5edfb12 100644 --- a/linkers/rtems-ra.cpp +++ b/linkers/rtems-ra.cpp @@ -177,7 +177,7 @@ main (int argc, char* argv[]) while (true) { - int opt = ::getopt_long (argc, argv, "hVvnS:a:p:L:l:o:C:E:c:R:W:A:r:d", rld_opts, NULL); + int opt = ::getopt_long (argc, argv, "hVvnSa:p:L:l:o:C:E:c:R:W:A:r:d:", rld_opts, NULL); if (opt < 0) break; diff --git a/linkers/rtems-rapper.cpp b/linkers/rtems-rapper.cpp index 2e3d2cf..f8f2a11 100644 --- a/linkers/rtems-rapper.cpp +++ b/linkers/rtems-rapper.cpp @@ -1164,7 +1164,7 @@ main (int argc, char* argv[]) while (true) { - int opt = ::getopt_long (argc, argv, "hvVnaHlsSroxf", rld_opts, NULL); + int opt = ::getopt_long (argc, argv, "hvVnaHmlsSroxf", rld_opts, NULL); if (opt < 0) break; |