| ... | ... | @@ -101,6 +101,7 @@ static int print_full_usage(const char *arg0, FILE *file, int return_code) { |
| 101 | 101 | " --version-script [path] provide a version .map file\n" |
| 102 | 102 | " --object [obj] add object file to build\n" |
| 103 | 103 | " -L[dir] alias for --library-path\n" |
| 104 | " -l[lib] alias for --library\n" |
| 104 | 105 | " -rdynamic add all symbols to the dynamic symbol table\n" |
| 105 | 106 | " -rpath [path] add directory to the runtime library search path\n" |
| 106 | 107 | " --subsystem [subsystem] (windows) /SUBSYSTEM:<subsystem> to the linker\n" |
| ... | ... | @@ -688,6 +689,12 @@ int main(int argc, char **argv) { |
| 688 | 689 | } else if (arg[1] == 'L' && arg[2] != 0) { |
| 689 | 690 | // alias for --library-path |
| 690 | 691 | lib_dirs.append(&arg[2]); |
| 692 | } else if (arg[1] == 'l' && arg[2] != 0) { |
| 693 | // alias for --library |
| 694 | const char *l = &arg[2]; |
| 695 | if (strcmp(l, "c") == 0) |
| 696 | have_libc = true; |
| 697 | link_libs.append(l); |
| 691 | 698 | } else if (arg[1] == 'F' && arg[2] != 0) { |
| 692 | 699 | framework_dirs.append(&arg[2]); |
| 693 | 700 | } else if (strcmp(arg, "--pkg-begin") == 0) { |
| ... | ... | @@ -778,7 +785,7 @@ int main(int argc, char **argv) { |
| 778 | 785 | lib_dirs.append(argv[i]); |
| 779 | 786 | } else if (strcmp(arg, "-F") == 0) { |
| 780 | 787 | framework_dirs.append(argv[i]); |
| 781 | | } else if (strcmp(arg, "--library") == 0) { |
| 788 | } else if (strcmp(arg, "--library") == 0 || strcmp(arg, "-l") == 0) { |
| 782 | 789 | if (strcmp(argv[i], "c") == 0) |
| 783 | 790 | have_libc = true; |
| 784 | 791 | link_libs.append(argv[i]); |