Branch: Tag:

2000-12-19

2000-12-19 19:51:58 by Fredrik Hübinette (Hubbe) <hubbe@hubbe.net>

make -v be more verbose and allow option -rdynamic

Rev: NT/tools/rntcl:1.12

54:    });       string target="exe"; -  int debug,optimize,share; +  int debug,optimize,share,dynamic;    string output, wantfile;       mixed *opts=Getopt.find_all_options(argv, aggregate(
67:    ({"link",Getopt.HAS_ARG, ({"-l"}) }),    ({"share",Getopt.MAY_HAVE_ARG, ({"-s"}) }),    ({"ignore",Getopt.MAY_HAVE_ARG, ({"-t"}) }), -  ({"ignore",Getopt.HAS_ARG, ({"-R","-L","-r"}) }), +  ({"dynamic",Getopt.HAS_ARG, ({"-r"}) }), +  ({"ignore",Getopt.HAS_ARG, ({"-R","-L"}) }),    ({"warn",Getopt.MAY_HAVE_ARG, ({"-W"}) }),    ({"define",Getopt.HAS_ARG, ({"-D"}) }),    ({"undefine",Getopt.HAS_ARG, ({"-U"})}),
78:    {    switch(option[0])    { +  case "dynamic": +  dynamic++; +  ldopts+=({ +  "-DELAY:nobind", +  "-OPT:noref" // This might not be required +  }); +  break;    case "verbose":    verbose++;    ldopts+=({"-VERBOSE:lib"});
272:    int ret;    if(verbose && target!="-")    { - // werror("Doing: %s\n",cmd*" "); +  werror(" %s\n",cmd*" ");    ret=do_cmd(cmd);    }else{    int first_line=1;