Changeset e5165d2 in rtems-tools


Ignore:
Timestamp:
Aug 9, 2014, 12:32:50 PM (5 years ago)
Author:
Peng Fan <Peng.Fan@…>
Branches:
4.10, 4.11, master
Children:
40fd7a0
Parents:
097f1fd
git-author:
Peng Fan <Peng.Fan@…> (08/09/14 12:32:50)
git-committer:
Chris Johns <chrisj@…> (08/31/14 23:59:01)
Message:

Fix getopt_long usage

When passing shorhand options, getopt_long sometimes does not handle
them correctly.

Signed-off-by: Peng Fan <Peng.Fan@…>

Location:
linkers
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • linkers/rtems-ld.cpp

    r097f1fd re5165d2  
    200200    while (true)
    201201    {
    202       int opt = ::getopt_long (argc, argv, "hvwVMnb:E:o:O:L:l:a:c:e:d:u:C:W:R:P", rld_opts, NULL);
     202      int opt = ::getopt_long (argc, argv, "hvwVMnsSb:E:o:O:L:l:a:c:e:d:u:C:W:R:P:", rld_opts, NULL);
    203203      if (opt < 0)
    204204        break;
  • linkers/rtems-ra.cpp

    r097f1fd re5165d2  
    178178    while (true)
    179179    {
    180       int opt = ::getopt_long (argc, argv, "hVvnS:a:p:L:l:o:C:E:c:R:W:A:r:d", rld_opts, NULL);
     180      int opt = ::getopt_long (argc, argv, "hVvnSa:p:L:l:o:C:E:c:R:W:A:r:d:", rld_opts, NULL);
    181181      if (opt < 0)
    182182        break;
  • linkers/rtems-rapper.cpp

    r097f1fd re5165d2  
    11651165    while (true)
    11661166    {
    1167       int opt = ::getopt_long (argc, argv, "hvVnaHlsSroxf", rld_opts, NULL);
     1167      int opt = ::getopt_long (argc, argv, "hvVnaHmlsSroxf", rld_opts, NULL);
    11681168      if (opt < 0)
    11691169        break;
Note: See TracChangeset for help on using the changeset viewer.