Branch: Tag:

1999-08-06

1999-08-06 22:04:01 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

resolved some linking problems.

Rev: NT/tools/rntcl:1.4

40:      int main(int argc, string *argv)   { +  string *ldopts=({});    string *cflags=({    "-Zm300",    "-F8388608",
78:    {    case "verbose":    verbose++; +  ldopts+=({"-VERBOSE:lib"});    break;       case "export": // fixme
229:    case "dll":    if(debug)    { -  cmd+=({ -  "-link", +  array libs=({"libc.lib","libcd.lib", +  "libcmt.lib","libcmtd.lib", +  "msvcrt.lib","msvcrtd.lib"}); +  +  string lib=(debug?"libcmtd.lib":"libcmt.lib"); +  libs-=({ lib }); +  for(int e=0;e<sizeof(libs);e++) +  ldopts+=({"-nodefaultlib:"+libs[e]}); +  +  +  cmd+=({"-link",   // "-PDB:NONE",    "-DEBUGTYPE:BOTH",    "-DEBUG", -  }); +  }) +  +ldopts;    }    }    -  +     int ret;    if(verbose && target!="-")    ret=do_cmd(cmd);