diff --git a/src/emx/src/ld/ld.c b/src/emx/src/ld/ld.c
index c6fe287..f58763b 100755
a
|
b
|
static struct option longopts[] =
|
1078 | 1078 | {"Zwin32", 0, 0, 140}, /* Create GUI, CUI Win32 */ |
1079 | 1079 | {"Zrsx32", 0, 0, 141}, /* Create Win32/DOS win32 base */ |
1080 | 1080 | {"Zemx32", 0, 0, 142}, /* Create Win32/DOS emx base */ |
| 1081 | {"Zdll", 0, 0, 143}, /* Create .dll file */ |
1081 | 1082 | {"S", 0, 0, 'S'}, |
1082 | 1083 | {"T", 1, 0, 'T'}, |
1083 | 1084 | {"Ttext", 1, 0, 'T'}, |
… |
… |
decode_command (argc, argv)
|
1278 | 1279 | rsxnt_linked = RSXNT_EMX; |
1279 | 1280 | break; |
1280 | 1281 | |
| 1282 | case 143: /* -Zdll */ |
| 1283 | dll_flag = 1; |
| 1284 | break; |
| 1285 | |
1281 | 1286 | case 'R': |
1282 | 1287 | reloc_flag = 1; |
1283 | 1288 | break; |
… |
… |
void check_exe (void)
|
3847 | 3852 | else |
3848 | 3853 | { |
3849 | 3854 | ext = _getext2 (output_filename); |
3850 | | if (stricmp (ext, ".dll") == 0) |
| 3855 | if (dll_flag || stricmp (ext, ".dll") == 0) |
3851 | 3856 | { |
| 3857 | if (!*ext) |
| 3858 | output_filename = concat (output_filename, ".dll", NULL); |
| 3859 | |
3852 | 3860 | reloc_flag = 1; dll_flag = 1; |
3853 | 3861 | } |
| 3862 | else if (!*ext) |
| 3863 | output_filename = concat (output_filename, ".exe", NULL); |
3854 | 3864 | else if (stricmp (ext, ".exe") != 0) |
3855 | 3865 | { |
3856 | 3866 | exe_filename = NULL; |