Ignore:
Timestamp:
Apr 11, 2006, 12:50:06 AM (19 years ago)
Author:
bird
Message:

#89: more wlink stuff. ; Fixed the exp=int .def errors in weakld.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/emx/src/emxomf/emxomfld.c

    r2691 r2692  
    10501050  if (!stricmp(linker_type, "LINK386"))
    10511051      fFlags |= WLDC_LINKER_LINK386;
     1052  else if (!stricmp(linker_type, "WLINK"))
     1053      fFlags |= WLDC_LINKER_WLINK;
    10521054
    10531055  for (pOpt = options; pOpt; pOpt = pOpt->next)
     
    14431445      response_file = NULL;
    14441446    }
    1445   if (response_fname[0] != '\0')
    1446     {
    1447       remove (response_fname);
    1448       response_fname[0] = '\0';
    1449     }
    1450   if (weakobj_fname[0] != '\0')
    1451     {
    1452       remove (weakobj_fname);
    1453       weakobj_fname[0] = '\0';
    1454     }
    1455   if (weakdef_fname[0] != '\0')
    1456     {
    1457       remove (weakdef_fname);
    1458       weakdef_fname[0] = '\0';
    1459     }
    1460   for (; conv_list; conv_list = conv_list->next)
    1461       remove (conv_list->name);
     1447  if (opt_t <= 1)
     1448    {
     1449      if (response_fname[0] != '\0')
     1450        {
     1451          remove (response_fname);
     1452          response_fname[0] = '\0';
     1453        }
     1454      if (weakobj_fname[0] != '\0')
     1455        {
     1456          remove (weakobj_fname);
     1457          weakobj_fname[0] = '\0';
     1458        }
     1459      if (weakdef_fname[0] != '\0')
     1460        {
     1461          remove (weakdef_fname);
     1462          weakdef_fname[0] = '\0';
     1463        }
     1464      for (; conv_list; conv_list = conv_list->next)
     1465        remove (conv_list->name);
     1466    }
    14621467}
    14631468
     
    14691474         "Copyright (c) 1992-1996 by Eberhard Mattes\n"
    14701475         "Copyright (c) 2003 by InnoTek Systemberatung GmbH\n"
    1471          "Copyright (c) 2003-2004 by Knut St. Osmundsen\n"
     1476         "Copyright (c) 2003-2006 by Knut St. Osmundsen\n"
    14721477         "\n", stderr);
    14731478  fputs ("Usage: emxomfld -o <file> [-l <lib>] [-L <libdir>] [-T <base>] [-igtsS]\n"
     
    16521657        case 't':
    16531658        case 'i':                 /* Trace the linking process, sending /INFO to the IBM/M$ linker. */
    1654           opt_t = TRUE;
     1659          opt_t++;
    16551660          break;
    16561661
     
    20852090      /* standard stuff */
    20862091
    2087       //if (!strip_symbols)
    2088       //  put_arg ("debug hll", FALSE, FALSE);
     2092      if (!strip_symbols)
     2093        fprintf (response_file, "DEBUG HLL\n");
    20892094      fprintf (response_file, "OPTION QUIET\n");
    20902095      fprintf (response_file, "OPTION OSNAME='OS/2 EMX'\n");
     
    21122117      /* Add the linker options specified with -O. */
    21132118
    2114       put_args (options, FALSE);
     2119      for (pcur = options; pcur; pcur = pcur->next)
     2120        fprintf (response_file, "%s\n", pcur->name);
    21152121
    21162122      /* Put the object file names onto the command line. */
Note: See TracChangeset for help on using the changeset viewer.