Print this page
11461 should use a native link-editor during the build
11463 SUNWonld has passed its use-by date
11464 cmd/sgs/tools should contain tools, not common code
11465 sgsmsg should be built with the rest of the build tools

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/cw/cw.1onbld
          +++ new/usr/src/tools/cw/cw.1onbld
↓ open down ↓ 28 lines elided ↑ open up ↑
  29   29  .Sh NAME
  30   30  .Nm cw
  31   31  .Nd invoke one or more compilers with argument translation
  32   32  .Sh SYNOPSIS
  33   33  .Nm cw
  34   34  .Op Fl C
  35   35  .Op Fl -versions
  36   36  .Op Fl -noecho
  37   37  .Fl -primary Ar compiler
  38   38  .Op Fl -shadow Ar compiler ...
       39 +.Op Fl -linker Ar linker
  39   40  .Fl -
  40   41  .Ar compiler args ...
  41   42  .Sh DESCRIPTION
  42   43  .Nm cw
  43   44  is a facility for invoking one or more compilers, providing translation from
  44   45  Sun style arguments as appropriate.
  45   46  This allows the use of arbitrary compilers without the need to alter large
  46   47  numbers of makefiles.
  47   48  A mode called shadow compilation invokes multiple compilers so that warnings
  48   49  and errors may be obtained from all of them.
↓ open down ↓ 21 lines elided ↑ open up ↑
  70   71  .Em sun
  71   72  or
  72   73  .Em gnu .
  73   74  .Bl -tag -width indent
  74   75  .It Fl -primary Ar compiler
  75   76  Specify the compiler to be used primarily (that which is used for link-editing
  76   77  and pre-processing, and whos objects we deliver).
  77   78  .It Fl -shadow Ar compiler
  78   79  Specify a shadow compiler, which builds sources for the sake of checking code
  79   80  quality and compatibility, but has its output discarded.
       81 +.It Fl -linker Ar linker
       82 +Specify a link-editor to use in place of
       83 +.Pa /usr/bin/ld .
       84 +.Xr ld 1
       85 +itself arranges for this to be executed by any subprocesses.
  80   86  .It Fl -noecho
  81   87  Do not echo the actual command line of any compilers invoked.
  82   88  .It Fl -versions
  83   89  Request from each configured primary and shadow compiler its version
  84   90  information.
  85   91  .It Fl C
  86   92  The sources being compiled are C++.  This is necessary as it affects the
  87   93  translation of compiler arguments.
  88   94  .It Fl -
  89   95  Arguments intended for the compilers themselves must be separated from those
↓ open down ↓ 113 lines elided ↑ open up ↑
 203  209  .It 0
 204  210  The primary compiler, and shadow compilers if invoked, all completed
 205  211  successfully.
 206  212  .It >0
 207  213  A usage error occurred, or one or more compilers returned a nonzero
 208  214  exit status.
 209  215  .El
 210  216  .Sh SEE ALSO
 211  217  .Xr cc 1 ,
 212  218  .Xr CC 1 ,
 213      -.Xr gcc 1
      219 +.Xr gcc 1 ,
      220 +.Xr ld 1
 214  221  .Sh BUGS
 215  222  The translations provided for gcc are not always exact and in some cases
 216  223  reflect local policy rather than actual equivalence.
 217  224  .Pp
 218  225  Additional compiler types should be supported.
 219  226  .Pp
 220  227  The translation engine is hacky.
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX